FtpSession class
Constructors
-
FtpSession(Socket controlSocket, {String? username, String? password, required List<
String> allowedDirectories, required String startingDirectory, required ServerType serverType, required LoggerHandler logger})
Properties
-
allowedDirectories
→ List<
String> -
final
- cachedUsername ↔ String?
-
getter/setter pair
- commandHandler → FTPCommandHandler
-
final
- controlSocket → Socket
-
final
- currentDirectory ↔ String
-
getter/setter pair
- dataListener ↔ ServerSocket?
-
getter/setter pair
- dataSocket ↔ Socket?
-
getter/setter pair
- 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
- startingDirectory → String
-
final
- username → String?
-
final
Methods
-
changeDirectory(
String dirname) → void -
changeToParentDirectory(
) → void -
closeConnection(
) → void -
currentPath(
) → 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(
) → bool -
processCommand(
List< int> data) → void -
removeDirectory(
String dirname) → void -
retrieveFile(
String filename) → Future< void> -
sendResponse(
String message) → Future< void> -
storeFile(
String filename) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited