in reply to What is the best way to move a directory to a mounted filesystem?

You don't give any platform specs but I would imagine the underlying guts of File::Copy do not support directory moving for your platform. Looking at the docs, it appears to only support file to file and file to directory moving. There's nothing magical about File::Copy - you could always just single step through the debugger to catch where you're failing.

-derby
  • Comment on Re: What is the best way to move a directory to a mounted filesystem?

Replies are listed 'Best First'.
Re^2: What is the best way to move a directory to a mounted filesystem?
by wenD (Beadle) on Nov 29, 2006 at 19:28 UTC

    Thanks for your replies. A few more details I should have included...

    The platform is Linux.
    Permissions are okay.
    I can get File::Copy to move a directory from one place to another as long as it's on the same filesystem.
    ---------------------------- use File::Copy; my $source_dir = '/home/my/this_dir'; my $destination_dir = '/usr/local/elsewhere/this_dir'; # This works fine. move($source_dir, $destination_dir); ----------------------------
      In your OP the destination path is /nfsmount/elsewhere/this_dir implying that the filesystem id from a remote server. Have you checked whether the filesystem has been shared on that server as read-only. I know this can throw a spanner in the works under Solaris.

      Just a thought,

      JohnGG