mikaelsundell / icloud-snapshot

icloud-snapshot is a utility to copy an icloud directory to a snapshot directory for archival purposes
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Evict files fails for Documents and special directories #5

Open mikaelsundell opened 1 year ago

mikaelsundell commented 1 year ago

The run fails when used on base icloud directory: com~apple~CloudDocs/Documents

icloud_snapshot/main.swift:111: Fatal error: 'try!' expression unexpectedly raised an error: Error Domain=NSCocoaErrorDomain Code=256 "The file “Documents” couldn’t be opened." UserInfo={NSURL=file:////com~apple~CloudDocs/Documents, NSFilePath=/com~apple~CloudDocs/Documents, NSUnderlyingError=0x600002549020 {Error Domain=NSPOSIXErrorDomain Code=20 "Not a directory"}}

mikaelsundell commented 1 year ago

This can't be reproduced on MacOS12.1, need to verify on earlier OS.