Both iCloud Drive and OneDrive for Mac support remote files (or "Files On-Demand" as OneDrive calls it).
- These files appear in Finder and seem to behave as real files (with odd Quick Look behavior).
- The Inspector shows their true size plus
(4 KB on disk)
or similar.
Also:
- Terminal does not seem to understand iCloud remote size:
: ~/Library/Mobile Documents/com~apple~Preview/Documents
$ ls -lh
total 24
-rw-r--r--@ 1 REDACTED staff 157B Apr 28 2014 .2AM.png.icloud
-rw-r--r--@ 1 REDACTED staff 6.0K Sep 30 2018 .DS_Store
- But it understands OneDrive's (the file shows
0 bytes on disk
in Finder):
: ~/OneDrive/Pictures/Drawings
$ ls -lh
total 24
-rwxrwxrwx@ 1 REDACTED staff 11M Apr 5 2019 MMM.kra*
Disappointingly, I cannot find any information about these files online. The official Apple File System Reference doesn't seem to show any clear endpoints for this.
- How do they work?
- Is this a public macOS API or feature of APFS? Is this dependent on APFS?