lib/snapsync/remote_pathname.rb in snapsync-0.4.2 vs lib/snapsync/remote_pathname.rb in snapsync-0.5.0
- old
+ new
@@ -298,9 +298,10 @@
o.uri.path = (Pathname.new(uri.path) + path).to_s
o
end
def read
+ Snapsync.debug "RemotePathname ('#{uri}').read"
begin
sftp_f.open(uri.path).read
rescue Net::SFTP::StatusException => e
raise Errno::ENOENT, e.message, e.backtrace
end