Daily iOS
iOS system design

File manager sync model

An iOS file manager shows a listing, offline files, and upload progress. How would you separate the storage of file metadata from the actual bytes?

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

Metadata like name, size, modification time, remote id, version, whether a local copy exists, and sync state lives in SQLite or SwiftData rows so the listing draws without any bytes, and the actual file bytes live in a subdirectory of Application Support named by remote id, so a row only points at a path.

Share a question