.htaccess
1 year ago
Attribute.php
1 year ago
FileType.php
1 year ago
OpenFlag.php
1 year ago
OpenFlag5.php
1 year ago
PacketType.php
1 year ago
StatusCode.php
1 year ago
Stream.php
1 year ago
index.html
1 year ago
web.config
1 year ago
OpenFlag5.php
35 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace phpseclib3\Net\SFTP; |
| 6 | |
| 7 | /** |
| 8 | * SFTPv5+ changed the flags up: https://datatracker.ietf.org/doc/html/draft-ietf-secsh-filexfer-13#section-8.1.1.3 |
| 9 | * |
| 10 | * @internal |
| 11 | */ |
| 12 | abstract class OpenFlag5 |
| 13 | { |
| 14 | // when SSH_FXF_ACCESS_DISPOSITION is a 3 bit field that controls how the file is opened |
| 15 | public const CREATE_NEW = 0x00000000; |
| 16 | public const CREATE_TRUNCATE = 0x00000001; |
| 17 | public const OPEN_EXISTING = 0x00000002; |
| 18 | public const OPEN_OR_CREATE = 0x00000003; |
| 19 | public const TRUNCATE_EXISTING = 0x00000004; |
| 20 | // the rest of the flags are not supported |
| 21 | public const APPEND_DATA = 0x00000008; // "the offset field of SS_FXP_WRITE requests is ignored" |
| 22 | public const APPEND_DATA_ATOMIC = 0x00000010; |
| 23 | public const TEXT_MODE = 0x00000020; |
| 24 | public const BLOCK_READ = 0x00000040; |
| 25 | public const BLOCK_WRITE = 0x00000080; |
| 26 | public const BLOCK_DELETE = 0x00000100; |
| 27 | public const BLOCK_ADVISORY = 0x00000200; |
| 28 | public const NOFOLLOW = 0x00000400; |
| 29 | public const DELETE_ON_CLOSE = 0x00000800; |
| 30 | public const ACCESS_AUDIT_ALARM_INFO = 0x00001000; |
| 31 | public const ACCESS_BACKUP = 0x00002000; |
| 32 | public const BACKUP_STREAM = 0x00004000; |
| 33 | public const OVERRIDE_OWNER = 0x00008000; |
| 34 | } |
| 35 |