iCloud Drive

18 Sep 2022

Location of iCloud Drive on macOS Monterey:

/Users/xxxx/Library/Mobile Documents/com~apple~CloudDocs

weirdly enough though, while the above is the link that gets copied when selecting the folder in Pathfinder, the location seen is:

/Users/xxxx/Library/Mobile Documents/iCloud Drive

Also, not all folders/files I can see in iCloud Drive with Finder show up when looking at the folder with its full path with Pathfinder.

It seems only folders I created show up here.

Need to figure out how to access the app-created folders in iCloud Drive, to access the Just Press Record folder for Transcribee !projects/transcribee.

Found it - each app has a separate folder in Mobile Documents, so:

/Users/xxxx/Library/Mobile Documents/iCloud~com~openplanetsoftware~just-press-record/Documents

Python snippet to access:

import os, os.path

count_files = 0

for root, dirs, files in os.walk("/Users/xxxx/Library/Mobile Documents/iCloud~com~openplanetsoftware~just-press-record/Documents"):
    # print(f"{dirs=}")
    # print(f"{files=}")
    # print()

    for x in os.listdir(root):
        if os.path.isfile(x):
            count_files += 1