APFS & iCloud file limits

Hi, i'm currently designing a "backup to icloud" solution for my app, and i was wondering what were the limits regarding :

  • the maximum number of files in a given directory in APFS (not just the theoretical limit, but also the one that's handled decently by APFS on an iOS hardware)

  • the maximum number of files in a given directory that's synchronized on iCloud (there again, the limit at which it starts to slow iCloud so much it becomes a really bad idea).

APFS & iCloud file limits
 
 
Q