Skip to content

Instantly share code, notes, and snippets.

@alansvits
Last active October 15, 2018 17:45
Show Gist options
  • Save alansvits/2f0fe3364f4fac50eebc3d9b877abee6 to your computer and use it in GitHub Desktop.
Save alansvits/2f0fe3364f4fac50eebc3d9b877abee6 to your computer and use it in GitHub Desktop.
File path fo Documents directory
print(FileManager.default.urls(for: .documentDirectory, in: .userDomainMask))
Output: [file:///Users/YOUR_USER_NAME/Library/Developer/CoreSimulator/Devices/E724A933-DEA6-46D5-A470-F9DC2DA71791/data/Containers/Data
/Application/14B57C59-89E4-49C2-8DDF-12BD13683351/Documents/]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment