Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- moving/renaming directory between NFS mounts
- Marten Lehmann
November 21, 2008, 5:33 pm
rate this thread
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?
- » FAQ 7.1 Can I get a BNF/yacc/RE for the Perl language?
- — Next thread in » PERL Discussions