Working with the filesystem
There’s a common assumption that iOS “doesn’t have a filesystem.” And even though there is a Files app, it is true that the filesystem is almost hidden for most standard users.
That’s not the case for iOS developers.
iOS developers use the iOS filesystem to store documents, images, cache files, and even database files.
The filesystem allows us to store a large set of information, work with resources and even share data with other app components. Most interview questions focus on organizing our files and responding to different use cases. Understanding how the sandbox is built is crucial for us as developers.
So, let’s review a question about our sandbox structure.
“Can you explain the purpose of each of the following folders in an iOS app: Documents, Library, Cache, and Temp? How would you decide which folder to use for storing different types of files in your app?”
Why is this question...