Skip to content

Instantly share code, notes, and snippets.

@andrewwoz
Created October 16, 2019 16:45
Show Gist options
  • Save andrewwoz/07f27a845474bd805ed0b8e70665dd42 to your computer and use it in GitHub Desktop.
Save andrewwoz/07f27a845474bd805ed0b8e70665dd42 to your computer and use it in GitHub Desktop.
[Checking file access in swift] #fs
_ = fs.fileExists(atPath: filePath)
_ = fs.isReadableFile(atPath: filePath)
_ = fs.isWritableFile(atPath: filePath)
_ = fs.isDeletableFile(atPath: filePath)
_ = fs.isExecutableFile(atPath: filePath)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment