Results 1 to 4 of 4
  1. #1


    Member Since
    Oct 17, 2012
    Posts
    2
    Cant find remote directory using find
    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?

  2. #2

    Raz0rEdge's Avatar
    Member Since
    Jul 17, 2009
    Location
    MA
    Posts
    8,502
    Specs:
    27" i7 iMac, 24" iMac, 13" Macbook Air, iPhone 6S, iPod Nano 7th GeniPad 3
    Can you do a "ls /Volumes/Servers/<path name>" where <path name> is the directory of your choice and have it show a valid directory with its contents?
    --
    Regards
    ...Ashwin



    Be sure to read the Community Guidelines | The more information you provide, the better answers you get, remember GIGO.

  3. #3


    Member Since
    Oct 17, 2012
    Posts
    2
    It insists the directory does not exist, however I can cd into the directory. Im wondering if spaces in the path name need backslashing? I wouldve thought wrapping the path around quotations would make backslash redundant. As luck would have it right the backslash key on my keyboard doesnt work so I cant conveniently check this right now! Having said that the path_to_ folder on my local drive has spaces also and terminal doesnt seem to mind.

    What is your opinion?

  4. #4

    Raz0rEdge's Avatar
    Member Since
    Jul 17, 2009
    Location
    MA
    Posts
    8,502
    Specs:
    27" i7 iMac, 24" iMac, 13" Macbook Air, iPhone 6S, iPod Nano 7th GeniPad 3
    Yes spaces need to be backslashed, but using the quotes should get around that. Not sure why it would having a problem with that..
    --
    Regards
    ...Ashwin



    Be sure to read the Community Guidelines | The more information you provide, the better answers you get, remember GIGO.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Cant find remote directory using find
    By JeremyRaven in forum OS X - Development and Darwin
    Replies: 0
    Last Post: 10-17-2012, 05:40 PM
  2. Replies: 1
    Last Post: 12-02-2011, 08:39 AM
  3. Find Installation Directory
    By jamesmerr in forum OS X - Operating System
    Replies: 1
    Last Post: 11-11-2009, 10:49 PM
  4. /usr directory - can't find
    By romsok in forum OS X - Operating System
    Replies: 1
    Last Post: 10-17-2009, 12:57 PM
  5. Replies: 6
    Last Post: 02-10-2007, 03:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •