Reputation: 5
I am trying to determine whether a given file or directory path is synced with any cloud storage services such as Google Drive, OneDrive, iCloud, Dropbox, or similar services.
I am open to solutions in C++ or Swift. Ideally, I am looking for:
Any library that provides an API to check if a file/folder is managed by a cloud service. A way to manually check for cloud-related attributes on macOS or Windows. I have explored file attributes and extended attributes, but I am unsure if they can be reliably used to detect cloud syncing across different services.
Are there any recommended approaches or libraries for achieving this? Any guidance would be appreciated!
What I’ve Tried for MacOS:
Checking for extended attributes (xattr) on macOS.
Would love to hear if anyone has implemented this or knows a better way. Thanks!
Upvotes: -2
Views: 27