iOS CapabilitiesLesson 67Free preview
File System
This lesson is part of Swift · All levels
Summary
This lesson reviews the manipulation of the File System on iOS using FileManager. Each iOS app runs in an isolated Sandbox that has a standard folder structure: Documents, Caches, and Application Support.
Key points
- The App Sandbox security system isolates the application files from other applications
- FileManager.default used for operations of creating, moving, and deleting files
- The Documents directory is automatically reserved to iCloud/iTunes when backup the device
- The 'Caches' directory is unreserved and can be cleaned at any time by the system when the memory is full
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.