Class: Net::SFTP::Protocol::V_04::Impl

Class | Net::SFTP::Protocol::V_04::Impl
In: | lib/net/sftp/protocol/04/impl.rb
Parent: | V_03::Impl

The implementation of the operations available to version 4 of the SFTP protocol.

### Methods

do_name fstat lstat rename stat

### Public Instance methods

do_name( channel, content )

Used internally to handle `name` packets. The `on_name` callback is invoked, if registered, with the driver, id, and array of items. The v4 version of this method sets the ‘longname’ member of the Name object to `nil` (it is not used in this version).

fstat( id, handle, flags=nil )

In version 4, fstat accepts a flags parameter. If flags is `nil`, it will default to returning all attributes. Otherwise, the flags parameter should be a bitwise combination of the F_xxx constants of Net::SFTP::Protocol::V_04::Attributes.

lstat( id, filename, flags=nil )

In version 4, lstat accepts a flags parameter. If flags is `nil`, it will default to returning all attributes. Otherwise, the flags parameter should be a bitwise combination of the F_xxx constants of Net::SFTP::Protocol::V_04::Attributes.

rename( id, name, new_name, flags=0 )

In version 4, rename accepts a flags parameter. The valid flags are a combination of the following:

- FXP_RENAME_OVERWRITE (0x01)
- FXP_RENAME_ATOMIC (0x02)
- FXP_RENAME_NATIVE (0x04)

Please refer to the SSH2 specification for the description of these flags.

stat( id, filename, flags=nil )

In version 4, stat accepts a flags parameter. If flags is `nil`, it will default to returning all attributes. Otherwise, the flags parameter should be a bitwise combination of the F_xxx constants of Net::SFTP::Protocol::V_04::Attributes.

[Validate]