lib/rio/ops/either.rb in rio-0.5.1 vs lib/rio/ops/either.rb in rio-0.6.0
- old
+ new
@@ -1,8 +1,8 @@
#--
# ===========================================================================
-# Copyright (c) 2005-2012 Christopher Kleckner
+# Copyright (c) 2005-2017 Christopher Kleckner
# All rights reserved
#
# This file is part of the Rio library for ruby.
#
# Rio is free software; you can redistribute it and/or modify
@@ -59,11 +59,10 @@
if args.empty?
softreset.rename(*args,&block)
else
rtn_reset {
dst = args.shift.to_s
- #p "rename: #{self} => #{dst}"
fs.mv(uri.path,dst,*args) unless uri.path == dst
}
end
end
def rename!(*args,&block)
@@ -71,10 +70,9 @@
softreset.rename(*args,&block)
else
rtn_reset {
cpath = uri.path
uri.path = args.shift.to_s
- #p "rename!: #{cpath} => #{uri.path}"
fs.mv(cpath,uri.path,*args) unless uri.path == cpath
}
end
end
alias :mv :rename