creamygoodness has asked for the wisdom of the Perl Monks concerning the following question:
Greets,
File::Copy's move() command fails when trying to move a directory from one volume to another. However, the system mv command succeeds.
-bash-3.1$ pwd /home/marvin -bash-3.1$ ls /usr1/stuff | grep foo -bash-3.1$ mkdir foo -bash-3.1$ perl -MFile::Copy -e 'move("foo", "/usr1/stuff/foo") or die + $!' Is a directory at -e line 1. -bash-3.1$ mv foo/ /usr1/stuff/foo -bash-3.1$ ls /usr1/stuff | grep foo foo -bash-3.1$
Is this expected behavior?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File::Copy and moving directories across volumes (complex)
by tye (Sage) on Dec 05, 2008 at 02:00 UTC | |
|
Re: File::Copy and moving directories across volumes
by oko1 (Deacon) on Dec 05, 2008 at 01:44 UTC | |
|
Re: File::Copy and moving directories across volumes
by mvaline (Friar) on Dec 05, 2008 at 04:12 UTC |