Pathname.mv_from is useful to us

This commit is contained in:
Max Howell 2009-06-08 15:57:58 +01:00
parent 9003225a34
commit 26590df324

View File

@ -88,6 +88,11 @@ class Pathname
def mv dst
FileUtils.mv to_s, dst
end
def mv_from src
FileUtils.mv src, to_s
end
def cp dst
if file?
FileUtils.cp to_s, dst