moving/renaming directory between NFS mounts

Discussion in 'Perl Misc' started by Marten Lehmann, Nov 21, 2008.

  1. Hi,

    I want to move a complete directory by perl from one NFS mount to
    another. At the linux shell, I would simple enter

    mv source target/

    But in perl this doesn't work, neither with rename nor with File::Copys
    move. I know that internally it is not a rename but a copy and delete,
    so I didn't expect rename() to work. But I don't want to run through the
    whole directory tree. I want to keep it as simply as the linux shells mv
    command, but I only want to use system("mv source target/") if there is
    no other way. I couldn't find a helpful modul. Any ideas?

    Kind regards
    Marten
     
    Marten Lehmann, Nov 21, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. john bailo

    using SMB as filesystem mounts

    john bailo, Sep 10, 2003, in forum: Java
    Replies:
    3
    Views:
    413
    Davide Consonni
    Sep 11, 2003
  2. Tim Daneliuk

    Getting List Of All Filesystem Mounts

    Tim Daneliuk, Jan 8, 2005, in forum: Python
    Replies:
    1
    Views:
    278
    Roel Schroeven
    Jan 8, 2005
  3. loial
    Replies:
    2
    Views:
    653
    Mike Schilling
    Nov 1, 2007
  4. Danger_Duck

    Renaming and Moving Files:

    Danger_Duck, Aug 7, 2008, in forum: Java
    Replies:
    10
    Views:
    648
    Arne Vajhøj
    Aug 8, 2008
  5. Senandung Mendonan

    File::Find in FreeBSD msdosfs mounts

    Senandung Mendonan, Aug 15, 2004, in forum: Perl Misc
    Replies:
    1
    Views:
    127
    Joe Smith
    Aug 16, 2004
Loading...

Share This Page