lib/pa/cmd.rb in pa-1.0.0 vs lib/pa/cmd.rb in pa-1.0.1
- old
+ new
@@ -291,10 +291,9 @@
# @param [String] src
# @param [String] dest
def _copy(src, dest, o={})
raise Errno::EEXIST, "dest exists -- #{dest}" if File.exists?(dest) and (not o[:force])
-
case type=File.ftype(src)
when "file", "socket"
puts "cp #{src} #{dest}" if o[:verbose]
File.copy_stream(src, dest)