我尝试使用File :: Copy或只是shell cp。没有用。任何线索?
https://github.com/songyangster/perltest
$ bin/test_copy.pl from_dir to_dir
Failed to File::Copy cp from_dir/foo1.txt to to_dir
cp: from_dir/foo1.txt: No such file or directory
Failed to cp from_dir/foo1.txt to to_dir
Failed to File::Copy cp from_dir/subdir1/foo2.txt to to_dir
cp: from_dir/subdir1/foo2.txt: No such file or directory
Failed to cp from_dir/subdir1/foo2.txt to to_dir