moving/renaming directory between NFS mounts

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

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

Re: moving/renaming directory between NFS mounts

Marten Lehmann wrote:
Quoted text here. Click to load it

What do you mean, "couldn't find a helpful module"?

Go to and enter "File::Copy recursive" in the
search box.  How hard is that?


Site Timeline