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

Ah Dear Esteemed Monk,
If you'd have added a bit of code such as:

#!/usr/bin/perl use File::Copy; move('foobar','/mnt/peter/tmp/')or die $!;
You would have recieved a great big hint:
Is a directory at foo.pl line 4.


Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg

Replies are listed 'Best First'.
Re^2: What is the best way to move a directory to a mounted filesystem?
by derby (Abbot) on Nov 30, 2006 at 14:57 UTC

    Uhh ... doesn't the OP do the same thing (he even noted the error message in a comment).

    -derby
          doesn't the OP do the same thing

      Senility must be setting in for me. I somehow missed that.

      At any rate, I experimented around with this and found that it just plain won't work. Not sure why, but it won't work.

      If I were to attempt to do what the OP were doing I'd probably use some form of File::Find foo and remove the original afterwards.


      Peter L. Berghold -- Unix Professional
      Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg