Chapter    7

Files and Directories

The recipes in this chapter focus on management of files and directories. The recipes can be used on both iOS and OS X. The main difference you will find between the two is that the file system on iOS is limited to the “sandbox.”

The sandbox is a security and stability structure that governs and limits the access your application has to the file system and other iOS resources. The sandbox restricts file access of the application to its bundle and a set of specific directories. Applications running in iOS cannot reach outside of the sandbox, which prevents them from damaging the system and other applications. Applications can access data from other applications such as Photos, but only by using purpose-built ...

Get Swift Recipes: A Problem-Solution Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.