Subversion Repositories oidplus

Rev

Go to most recent revision | Blame | Last modification | View Log | RSS feed

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