Rename Remote::FS#{has_,}file?
This commit is contained in:
1 parent
19b091a15c
commit
103b9d1230
4 files changed
+8
-8
No files matched your search
@@ -12,7 +12,7 @@ module Producer
|
||||
@sftp ||= @remote.session.sftp.connect
|
||||
end
|
||||
|
||||
def has_file?(path)
|
||||
def file?(path)
|
||||
sftp.stat!(path).file?
|
||||
rescue Net::SFTP::StatusException
|
||||
false
|
||||
|
||||
Reference in new issue
Block a user