Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Operating System
Cant find remote directory using find
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="JeremyRaven" data-source="post: 1460166" data-attributes="member: 278393"><p>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...</p><p></p><p>find "PATH_TO_ORIG_DIR" -type d -depth -print | cpio -pd "PATH_TO_CURRENT DIR"</p><p></p><p>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. </p><p></p><p>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.</p><p></p><p>Any ideas?</p></blockquote><p></p>
[QUOTE="JeremyRaven, post: 1460166, member: 278393"] 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? [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Operating System
Cant find remote directory using find
Top