.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
OpenFlag.php
24 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace phpseclib3\Net\SFTP; |
| 6 | |
| 7 | /** |
| 8 | * http://tools.ietf.org/html/draft-ietf-secsh-filexfer-04#section-6.3 |
| 9 | * the flag definitions change somewhat in SFTPv5+. if SFTPv5+ support is added to this library, maybe name |
| 10 | * the array for that $this->open5_flags and similarly alter the constant names. |
| 11 | * |
| 12 | * @internal |
| 13 | */ |
| 14 | abstract class OpenFlag |
| 15 | { |
| 16 | public const READ = 0x00000001; |
| 17 | public const WRITE = 0x00000002; |
| 18 | public const APPEND = 0x00000004; |
| 19 | public const CREATE = 0x00000008; |
| 20 | public const TRUNCATE = 0x00000010; |
| 21 | public const EXCL = 0x00000020; |
| 22 | public const TEXT = 0x00000040; // defined in SFTPv4 |
| 23 | } |
| 24 |