Module: RubySMB::SMB1::Packet::Trans2::FindInformationLevel
- Defined in:
- lib/ruby_smb/smb1/packet/trans2/find_information_level.rb,
lib/ruby_smb/smb1/packet/trans2/find_information_level/find_file_both_directory_info.rb,
lib/ruby_smb/smb1/packet/trans2/find_information_level/find_file_full_directory_info.rb
Overview
FIND information levels are used in TRANS2_FIND_FIRST2 (section 2.2.6.2) and TRANS2_FIND_NEXT2 (section 2.2.6.3) subcommand requests to indicate the level of information that a server MUST respond with for each file matching the request's search criteria.
Defined Under Namespace
Classes: FindFileBothDirectoryInfo, FindFileFullDirectoryInfo
Constant Summary collapse
- SMB_INFO_STANDARD =
[LANMAN2.0] Return creation, access, and last write timestamps, size and file attributes along with the file name.
0x0001
- SMB_INFO_QUERY_EA_SIZE =
[LANMAN2.0] Return the SMB_INFO_STANDARD data along with the size of a file's extended attributes (EAs).
0x0002
- SMB_INFO_QUERY_EAS_FROM_LIST =
[LANMAN2.0] Return the SMB_INFO_QUERY_EA_SIZE data along with a specific list of a file's EAs. The requested EAs are provided in the Trans2_Data block of the request.
0x0003
- SMB_FIND_FILE_DIRECTORY_INFO =
[NT LANMAN] Return 64-bit format versions of: creation, access, last write, and last attribute change timestamps; size. In addition, return extended file attributes and file name.
0x0101
- SMB_FIND_FILE_FULL_DIRECTORY_INFO =
[NT LANMAN] Returns the SMB_FIND_FILE_DIRECTORY_INFO data along with the size of a file's EAs.
0x0102
- SMB_FIND_FILE_NAMES_INFO =
[NT LANMAN] Returns the name(s) of the file(s).
0x0103
- SMB_FIND_FILE_BOTH_DIRECTORY_INFO =
[NT LANMAN] Returns a combination of the data from SMB_FIND_FILE_FULL_DIRECTORY_INFO and SMB_FIND_FILE_NAMES_INFO.
0x0104
Class Method Summary collapse
Class Method Details
.name(value) ⇒ Object
260
35 36 37 |
# File 'lib/ruby_smb/smb1/packet/trans2/find_information_level.rb', line 35 def self.name(value) constants.select { |c| c.upcase == c }.find { |c| const_get(c) == value } end |