- Joined
- Oct 17, 2012
- Messages
- 2
- Reaction score
- 0
- Points
- 1
Im wanting to copy the directories inside a particular directory (rather than its contents) which resides on a server using terminal. The following code is perfect or near enough for what I want...
find "PATH_TO_ORIG_DIR" -type d -depth -print | cpio -pd "PATH_TO_CURRENT DIR"
To grab the actual path of both directories, I just dumped the folder into textEdit which gives me the path in plain text, then I copy and paste this into the command above. For a directory that exists locally I have no problems, but for one that exists on "/Volumes/Server...." terminal reports the directory doesnt exists.
I dont think its a firewall because I can navigate using finder to the same directory and I am also currently connected to this directory. The path itself mirrors exactly the same one that reads at the top of the finder window of the directory I have navigated to myself.
Any ideas?
find "PATH_TO_ORIG_DIR" -type d -depth -print | cpio -pd "PATH_TO_CURRENT DIR"
To grab the actual path of both directories, I just dumped the folder into textEdit which gives me the path in plain text, then I copy and paste this into the command above. For a directory that exists locally I have no problems, but for one that exists on "/Volumes/Server...." terminal reports the directory doesnt exists.
I dont think its a firewall because I can navigate using finder to the same directory and I am also currently connected to this directory. The path itself mirrors exactly the same one that reads at the top of the finder window of the directory I have navigated to myself.
Any ideas?