FtpSession class

Constructors

FtpSession(Socket controlSocket, {String? username, String? password, required List<String> sharedDirectories, required ServerType serverType, required LoggerHandler logger, String? startingDirectory})

Properties

cachedUsername String?
getter/setter pair
commandHandler FTPCommandHandler
final
controlSocket Socket
final
currentDirectory String
no setter
dataListener ServerSocket?
getter/setter pair
dataSocket Socket?
getter/setter pair
fileOperations FileOperations
final
hashCode int
The hash code for this object.
no setterinherited
isAuthenticated bool
getter/setter pair
logger LoggerHandler
final
password String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serverType ServerType
final
sharedDirectories List<String>
final
transferInProgress bool
getter/setter pair
username String?
final

Methods

abortTransfer() → void
changeDirectory(String dirname) → void
changeToParentDirectory() → void
closeConnection() → void
deleteFile(String filePath) → void
enterActiveMode(String parameters) Future<void>
enterExtendedPassiveMode() Future<void>
enterPassiveMode() Future<void>
fileSize(String filePath) Future<void>
listDirectory(String path) Future<void>
makeDirectory(String dirname) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openDataConnection() Future<bool>
processCommand(List<int> data) → void
removeDirectory(String dirname) → void
retrieveFile(String filename) Future<void>
sendResponse(String message) → void
storeFile(String filename) Future<void>
toString() String
A string representation of this object.
inherited
waitForClientDataSocket({Duration? timeout}) Future<void>

Operators

operator ==(Object other) bool
The equality operator.
inherited