Get Updates By E-mail 

Article Written By:
Johann Dowa

Files – An Open Source Swift Library For Working With Files And Folders

  •  
  •  
  •  
  •  
  •  

Files is an open source Swift library from John Sundell for working with files ion iOS, macOS and tvOS.

Files provides a straightforward object-oriented API for moving, deleting, reading, and writing files and folders.

This snippet from the readme shows an example of file and folder deletion and creation:

let folder = try Folder(path: "/users/john/folder")
let file = try folder.createFile(named: "file.json")
try file.write(data: wrap(object))
try file.delete()
try folder.delete()

You can find files on Github here.

A great Swift library for working with files.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments