Method: Net::SFTP::Protocol::V04::Base#lstat
- Defined in:
- lib/net/sftp/protocol/04/base.rb
#lstat(path, flags = nil) ⇒ Object
Sends a FXP_LSTAT packet to the server for the given path
, and with the given flags
. If flags
is nil, it defaults to F_SIZE | F_PERMISSIONS | F_ACCESSTIME | F_CREATETIME | F_MODIFYTIME | F_ACL | F_OWNERGROUP | F_SUBSECOND_TIMES | F_EXTENDED (see Net::SFTP::Protocol::V04::Attributes for those constants).
54 55 56 |
# File 'lib/net/sftp/protocol/04/base.rb', line 54 def lstat(path, flags=nil) send_request(FXP_LSTAT, :string, path, :long, flags || DEFAULT_FLAGS) end |