moving/renaming directory between NFS mounts

M

Marten Lehmann

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,733
Messages
2,569,440
Members
44,832
Latest member
GlennSmall

Latest Threads

Top