Skip to content

FileManager additions to simplify access to iOS app sandbox.

Notifications You must be signed in to change notification settings

sayeedhussain/iOS_FileUtils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FileUtils

FileManager additions to simplify access to iOS app sandbox.

Accessing sandbox default directory locations
  let cachesDir = FileManager.default.fu_cachesDir()
  let libraryDir = FileManager.default.fu_libraryDir()
Creating subdirs in sandbox default directories
  if let path = try? FileManager.default.fu_documentSubDir(withComponent: "MyFiles") {
      print("\(path)")
  }
Getting persistent path for storing Application data
  do {        
        let path = try FileManager.default.fu_persistentAppDataPath()
        print("\(path)")
    
  } catch {
        print("\(error)")
  }

About

FileManager additions to simplify access to iOS app sandbox.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published