ingydotnet / io-all-pm

All in One Perl IO
http://search.cpan.org/dist/IO-All/
38 stars 20 forks source link

file copy recursively ? #90

Open tadegenban opened 9 years ago

tadegenban commented 9 years ago

io->file('path/to/file')->copy('new/path/to/file')

if the new/path/ is not exist, this will cause error : No such file or directory at ../IO/All/File.pm line 125

I'm wondering why not create directories recursively if need be, or add a new method 'rcopy' or 'fcopy' to do this ?