r/howdidtheycodeit • u/nyc13f • Sep 05 '21
How did they code iCloud?
On MacOS, iCloud Drive seems to cache files used recently on your system for a given period. Files not used, appear with a little cloud icon next to the name and upon double clicking, download to your system. How was this coded?
32
Upvotes
View all comments
Show parent comment
2
u/[deleted] Sep 05 '21
I think this is close. I don’t think it uses a fake file though, it’s probably something like a special filesystem node or Finder using the iCloud database somewhere to show the file.
And the last opened is easy to check as the filesystem already has those attributes on the files.