icloud-documents

Determine if a file is inside any macOS Trash folder

本秂侑毒 提交于 2020-12-26 06:43:45
问题 There's a similar question for iOS, but I found that the proprosed solutions do not work on macOS in all cases. On a Mac, there are many possible Trash folders: /.Trashes ~/.Trash ~/Library/Mobile Documents/com~apple~CloudDocs/.Trash – this one is from iCloud /Users/xxx/.Trash – any other user's trash /Volumes/xxx/.Trashes This code should work but doesn't for the case of the iCloud trash: NSURL *theURL = ...; NSURLRelationship relationship = NSURLRelationshipOther; NSError *error = nil;

Determine if a file is inside any macOS Trash folder

怎甘沉沦 提交于 2020-12-26 06:43:03
问题 There's a similar question for iOS, but I found that the proprosed solutions do not work on macOS in all cases. On a Mac, there are many possible Trash folders: /.Trashes ~/.Trash ~/Library/Mobile Documents/com~apple~CloudDocs/.Trash – this one is from iCloud /Users/xxx/.Trash – any other user's trash /Volumes/xxx/.Trashes This code should work but doesn't for the case of the iCloud trash: NSURL *theURL = ...; NSURLRelationship relationship = NSURLRelationshipOther; NSError *error = nil;

ICloud Drive Desktop Sync vs. Git - deleted files reappear and duplicates with number suffixes

北城余情 提交于 2020-03-23 06:23:09
问题 Some words about my setup: MacOs Catalina 10.15.2 Talking about git project folders on my Desktop which is synced with ICloud Drive sync Desktop & Document Folders option enabled I have noticed that the following happens every now and then for some time now. Yesterday, I backed up my MacBook Pro to MacOs Catalina 10.15.2 and this seems to have exacerbated the following pecularity I noticed this in my git initialized project folders: A lot of times when I deleted files from my local worktree

iCLoud document picker from WKWebview dismissing container view

放肆的年华 提交于 2019-12-06 07:40:34
问题 I have a WKWebview loading a web based UI where I would like users to be able to upload a file from their iCloud documents. I have granted the correct permissions and I am able to browse the iCloud documents. However when I either select a file or click the cancel button, as well as the document picker view dismissing the parent view of my WKWebview is also dismissed. I have tried to track the dismiss path. I am 100% sure I am not calling the dismiss function on my view. Does anyone have any

iCLoud document picker from WKWebview dismissing container view

岁酱吖の 提交于 2019-12-04 14:46:09
I have a WKWebview loading a web based UI where I would like users to be able to upload a file from their iCloud documents. I have granted the correct permissions and I am able to browse the iCloud documents. However when I either select a file or click the cancel button, as well as the document picker view dismissing the parent view of my WKWebview is also dismissed. I have tried to track the dismiss path. I am 100% sure I am not calling the dismiss function on my view. Does anyone have any idea what is triggering the dismiss on my WKWebview container and how to prevent it? I had the same