in reply to Optimizing files' moving with File::Find & File::Copy modules
which does work even if there are filenames with spaces in them.system "mv $dir1/* $dir2";
If $dir2 contains directories, you could do:
Note that File::Copy::move doesn't allow moving more than one file at a time.system "find $dir1 -type f -exec mv {} $dir2 ';'";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Optimizing files' moving with File::Find & File::Copy modules
by Anonymous Monk on Nov 17, 2009 at 02:52 UTC | |
by JavaFan (Canon) on Nov 17, 2009 at 10:44 UTC | |
by runrig (Abbot) on Nov 17, 2009 at 17:16 UTC | |
by JavaFan (Canon) on Nov 17, 2009 at 17:27 UTC | |
by runrig (Abbot) on Nov 17, 2009 at 17:42 UTC |