Back to FlowSsh Documentation

SftpErrCode Enumeration

[C/C++]

struct FlowSshC_SftpErrCode { enum {
  Eof                     = 1,
  NoSuchFile              = 2,
  PermissionDenied        = 3,
  Failure                 = 4,
  BadMessage              = 5,
  NoConnection            = 6,
  ConnectionLost          = 7,
  OpUnsupported           = 8,
  // SFTP4+
  InvalidHandle           = 9,
  NoSuchPath              = 10,
  FileAlreadyExists       = 11,
  WriteProtect            = 12,
  NoMedia                 = 13,
  // SFTP5+
  NoSpaceOnFilesystem     = 14,
  QuotaExceeded           = 15,
  UnknownPrinciple        = 16,
  LockConflict            = 17,
  // SFTP6+
  DirNotEmpty             = 18,
  NotADirectory           = 19,
  InvalidFilename         = 20,
  LinkLoop                = 21,
  CannotDelete            = 22,
  InvalidParameter        = 23,
  FileIsADirectory        = 24,
  ByteRangeLockConflict   = 25,
  ByteRangeLockRefused    = 26,
  DeletePending           = 27,
  FileCorrupt             = 28,
  OwnerInvalid            = 29,
  GroupInvalid            = 30,
  NoMatchingByteRangeLock = 31 }; };

[C#]

public enum SftpErrCode
{
  Eof                     = 1,
  NoSuchFile              = 2,
  PermissionDenied        = 3,
  Failure                 = 4,
  BadMessage              = 5,
  NoConnection            = 6,
  ConnectionLost          = 7,
  OpUnsupported           = 8,
  // SFTP4+
  InvalidHandle           = 9,
  NoSuchPath              = 10,
  FileAlreadyExists       = 11,
  WriteProtect            = 12,
  NoMedia                 = 13,
  // SFTP5+
  NoSpaceOnFilesystem     = 14,
  QuotaExceeded           = 15,
  UnknownPrinciple        = 16,
  LockConflict            = 17,
  // SFTP6+
  DirNotEmpty             = 18,
  NotADirectory           = 19,
  InvalidFilename         = 20,
  LinkLoop                = 21,
  CannotDelete            = 22,
  InvalidParameter        = 23,
  FileIsADirectory        = 24,
  ByteRangeLockConflict   = 25,
  ByteRangeLockRefused    = 26,
  DeletePending           = 27,
  FileCorrupt             = 28,
  OwnerInvalid            = 29,
  GroupInvalid            = 30,
  NoMatchingByteRangeLock = 31
}

Remarks

An enumeration used with the TransferErr structure/class. It specifies possible Sftp errors.