Module: RubySMB::Dispositions
- Defined in:
- lib/ruby_smb/dispositions.rb
Overview
This module holds the Create Dispositions used in NT_TRANSACT_CREATE and SMB_COM_NT_CREATE_ANDX requests. The definitions for these values can be found at 2.2.4.64.1 Request
Constant Summary collapse
- FILE_SUPERSEDE =
If the file already exists, it SHOULD be superseded (overwritten). If it does not already exist, it SHOULD be created.
0x00000000
- FILE_OPEN =
If the file already exists, it SHOULD be opened rather than creating a new file. If the file does not already exist, the operation MUST fail.
0x00000001
- FILE_CREATE =
If the file already exists, the operation MUST fail. If the file does not already exist, it SHOULD be created.
0x00000002
- FILE_OPEN_IF =
If the file already exists, it SHOULD be opened. If the file does not already exist, it SHOULD be created.
0x00000003
- FILE_OVERWRITE =
If the file already exists, it SHOULD be opened and truncated. If the file does not already exist, the operation MUST fail. The client MUST open the file with at least GENERIC_WRITE access for the command to succeed.
0x00000004
- FILE_OVERWRITE_IF =
If the file already exists, it SHOULD be opened and truncated. If the file does not already exist, it SHOULD be created. The client MUST open the file with at least GENERIC_WRITE access.
0x00000005