0
@@ -5,6 +5,9 @@ module Net module SFTP
0
+ # The various packet types supported by SFTP protocol versions 1 through 6.
0
+ # The FXP_EXTENDED and FXP_EXTENDED_REPLY packet types are not currently
0
+ # understood by Net::SFTP.
0
@@ -37,16 +40,21 @@ module Net module SFTP
0
- FXP_EXTENDED_REPLY = 107
0
+ FXP_EXTENDED_REPLY = 201
0
+ # Beginning in version 5 of the protocol, Net::SFTP::Session#rename accepts
0
+ # an optional +flags+ argument that must be either 0 or a combination of
0
+ # When an FXP_STATUS packet is received from the server, the +code+ will
0
+ # be one of the following constants.
0
@@ -72,7 +80,15 @@ module Net module SFTP
0
+ # The Net::SFTP::Session#open operation is one of the worst casualties of
0
+ # the revisions between SFTP protocol versions. The flags change considerably
0
+ # between version 1 and version 6. Net::SFTP tries to shield programmers
0
+ # from the differences, so you'll almost never need to use these flags
0
+ # directly, but if you ever need to specify some flag that isn't exposed
0
+ # by the higher-level API, these are the ones that are available to you.
0
+ # These are the flags that are understood by versions 1-4 of the the
0
@@ -82,6 +98,8 @@ module Net module SFTP
0
+ # Version 5 of the open operation totally discarded the flags understood
0
+ # by versions 1-4, and replaced them with these.
0
CREATE_NEW = 0x00000000
0
CREATE_TRUNCATE = 0x00000001
0
@@ -97,6 +115,8 @@ module Net module SFTP
0
DELETE_LOCK = 0x00000100
0
+ # Version 6 of the open operation added these flags, in addition to the
0
+ # flags understood by version 5.
0
ADVISORY_LOCK = 0x00000200
0
@@ -108,6 +128,8 @@ module Net module SFTP
0
+ # The Net::SFTP::Session#block operation, implemented in version 6 of
0
+ # the protocol, understands these constants for the +mask+ parameter.
0
READ = OpenFlags::FV5::READ_LOCK
0
WRITE = OpenFlags::FV5::WRITE_LOCK
0
@@ -116,6 +138,8 @@ module Net module SFTP
0
+ # Access control entry types, used from version 4 of the protocol,
0
+ # onward. See Net::SFTP::Protocol::V04::Attributes::ACL.
0
ACCESS_ALLOWED = 0x00000000
0
ACCESS_DENIED = 0x00000001
0
@@ -123,6 +147,8 @@ module Net module SFTP
0
SYSTEM_ALARM = 0x00000003
0
+ # Access control entry flags, used from version 4 of the protocol,
0
+ # onward. See Net::SFTP::Protocol::V04::Attributes::ACL.
0
FILE_INHERIT = 0x00000001
0
DIRECTORY_INHERIT = 0x00000002
0
@@ -133,6 +159,8 @@ module Net module SFTP
0
IDENTIFIER_GROUP = 0x00000040
0
+ # Access control entry masks, used from version 4 of the protocol,
0
+ # onward. See Net::SFTP::Protocol::V04::Attributes::ACL.
0
LIST_DIRECTORY = 0x00000001
Comments
No one has commented yet.