Is it possible to do this at all? I've tried the following command:

ln /Users/Rowan/Library/Mobile\ Documents/com~apple~CloudDocs/Documents /Users/Rowan/iCloud

which results in:

ln: /Users/Rowan/Library/Mobile Documents/com~apple~CloudDocs/Documents: Is a directory

I can't seem to find how to add an argument to ln in order to 'allow' directories.

有帮助吗?

解决方案

ln(1) on OS X does not support folder hard links. A symlink would work fine instead.

ln -s /Users/Rowan/Library/Mobile\ Documents/com~apple~CloudDocs/Documents /Users/Rowan/iCloud

If you really want a hard link, you can install coreutils with Homebrew and use

gln -d /Users/Rowan/Library/Mobile\ Documents/com~apple~CloudDocs/Documents /Users/Rowan/iCloud
许可以下: CC-BY-SA归因
不隶属于 apple.stackexchange
scroll top