iCloud Drive Symbolic Links broke Mac sidebar s...
So I wanted to make programming life easier by keeping content within my iCloud drive to not worry about my content being backed up. I didn't want to type the entire iCloud directory path before each of my scripts could be executed:
"/Users/[username]/Library/Mobile\ Documents/com\~apple\~CloudDocs/"
So I went to my home folder in terminal and wrote up a couple of symbolic links
ln -s "/Users/[username]/Library/Mobile\ Documents/com\~apple\~CloudDocs/" iCloud
ln -s "/Users/[username]/Library/Mobile\ Documents/com\~apple\~CloudDocs/Development" Dev
ln -s "/Users/[username]/Library/Mobile\ Documents/com\~apple\~CloudDocs/Development/CloudFormation" CF
ln -s "/Users/[username]/Library/Mobile\ Documents/com\~apple\~CloudDocs/Development/Python" Py
ln -s "/Users/[username]/Library/Mobile\ Documents/com\~apple\~CloudDocs/Development/myChef" Chef
But now, the iCloud shortcut icons on the left side of finder no longer work. More importantly, when i browse the iCloud drive, the Development folder has disappeared completely, and I can only get to it by its symbolic link. Same thing with the subfolders for CF, Py and Chef.
Does anyone know how to restore the original symbolic links for iCloud on my mac?
I have multiple Macs and would have to put those symbolic links on to each one of them to get proper access again.
The arguments in your ln command have a few mistakes in them so it created an invalid link. If you are escaping space with a \ then don't use quotes. If you are using quotes then don't use \ to escape anything however you should not put \ in front of ~ in either case because it doesn't need escaped. Also its best to put the full path to the destination of the symlink as well as the source.
Here is an example of how to symlink a "Projects" folder to iCloud Drive:
Create Projects folder on iCloud Drive. Replace your username:
ln -s /Users/mh/Library/Mobile\ Documents/com~apple~CloudDocs/Projects
/Users/mh/Projects
chflags -h hidden /Users/mh/Projects
The second command hides it from the home folder the same way the Desktop and Documents get hidden.
The very weird thing is that Apple actually do this the other way around. The data is in the Documents folder as normal (except it is hidden) and they put a symlink in iCloud Drive. We however can't put symlink in iCloud Drive so they must have some special handling in Finder to allow it.
最后更新:2017-08-20 19:20:31
上一篇:
Homepod design re: RoHS technology
下一篇:
TC Changed Name of Disk Back to "Data"?
In the 12.7 version my column browser height ha...
macbook hdd
Can I use student and work discount together?
Email on iPad and iPhone not receiving but is r...
Ipad/Pro start up problems.
My Calendar no longer runs on MS Outlook
Update Error 4005
No place to type "password followed by verifica...
How do I set up my Mac to receive scans from a ...
Trying to make a in
相关内容
"com.apple.installer.pagecontroller error
any idea what error 3503 is?
Underallocation Detected on Main device
The operation couldn’t be completed. (BKA...
is ctoid.exe a virus on my ipad safari browser?
iTunes Error: Declined to authorize this image ...
Keep High Efficiency Original if Available Chec...
iTunes 12.7 cannot edit playlist
High Sierra Stuck & Decryption paused
Need to unlock iphone 5 to reactivate the phone...
热门内容
Christian Music Removed From Itunes
I'm being billed twice every month for Apple Mu...
iMac running slow
Fix disappearing album art after moving iTunes
Activation Locked iWatch
Can I change the iwatch to miles instead of kil...
I keep seeing the "You don't have permission to...
can't read any menus macbook air
iPad 2, iOs9.3, taking days to restore
charges made under itune memeberships