kenahoo / Path-Class

Cross-platform path specification manipulation
http://search.cpan.org/dist/Path-Class/
15 stars 28 forks source link

Create File->copy() and File->move() methods #18

Closed kenahoo closed 10 years ago

kenahoo commented 11 years ago

Would be handy. Pass through to File::Copy.

kenahoo commented 11 years ago

Code is written & tested in a cp_mv branch. Not documented yet.

robrwo commented 11 years ago

I think copy_to and move_to would be better names for the methods: $a->copy_to($b) is clearer than $a->copy($b). The latter looks like $a is a copy of $b.

kenahoo commented 11 years ago

I agree, if you could submit a pull request to the cp_mv branch I'll merge it in.

robrwo commented 10 years ago

What's the status of this? My pull request has been merged in. It would be nice to see this merged into master and released.

kenahoo commented 10 years ago

Thanks for the ping. I've merged this into master and I'll cut a release now.

robrwo commented 10 years ago

Thanks!

It occurs to be that the POD for the new copy and move methods could be updated. (I thought that I added those to the branch, but perhaps that needs to be a separate pull request?)