Skip to content
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

Create exists file/folder should throw error #133

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

Conversation

honghaoz
Copy link

To match the documentation of createSubfolder and createFile methods on

This method throws an error if a folder already exists at the given path.
This method throws an error if a file already exists at the given path.

It should throw error if file/folder exits.

The reason is when withIntermediateDirectories is set to true for createDirectory(atPath:withIntermediateDirectories:attributes:), the FileManager doesn't throw error if path exists.

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