Skip to content

Only create the directory if it does not exist #1007

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Rumiya
Copy link

@Rumiya Rumiya commented Jul 1, 2025

When running in a CI setup using xcodebuild build-for-testing / xcodebuild test-without-running, the snapshot folder inside the test bundle might not be writable and tests fail because FileManager.createDirectory() attempts to create the directory regardless if it exists or not and fails with a permission denied error.

This adds a preflight check and only attempts to create the folder when it doesn't already exist.

@Rumiya Rumiya force-pushed the rumiya/only-create-directory-when-not-present branch from a9876a2 to 8f8114b Compare July 1, 2025 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant