fix: 内置 dartssh2 2.11.0 补丁版(third_party 本地依赖),修复新版 Dart SDK 下 sftp_client 编译错误

This commit is contained in:
ZV Team committed 2026-10-25 09:51:08 +08:00
1 parent 6daa9dd361
commit 0a33fabec2
139 files changed
+16497 -1

No files matched your search

+44
View File
@@ -0,0 +1,44 @@
abstract class SftpStatusCode {
/// Indicates successful completion of the operation.
static const ok = 0;
/// indicates end-of-file condition; for [SftpReadPacket] it means that no
/// more data is available in the file, and for [SftpReadDirPacket] it
/// indicates that no more files are contained in the directory.
static const eof = 1;
/// Returned when a reference is made to a file which should exist
/// but doesn't.
static const noSuchFile = 2;
/// Returned when the authenticated user does not have sufficient
/// permissions to perform the operation.
static const permissionDenied = 3;
/// A generic catch-all error message; it should be returned if an
/// error occurs for which there is no more specific error code
/// defined.
static const failure = 4;
/// may be returned if a badly formatted packet or protocol
/// incompatibility is detected.
static const badMessage = 5;
/// A pseudo-error which indicates that the client has no
/// connection to the server (it can only be generated locally by the
/// client, and MUST NOT be returned by servers).
static const noConnection = 6;
/// A pseudo-error which indicates that the connection to the
/// server has been lost (it can only be generated locally by the
/// client, and MUST NOT be returned by servers).
static const connectionLost = 7;
/// Indicates that an attempt was made to perform an operation which
/// is not supported for the server (it may be generated locally by
/// the client if e.g. the version number exchange indicates that a
/// required feature is not supported by the server, or it may be
/// returned by the server if the server does not implement an
/// operation).
static const opUnsupported = 8;
}