package
0.0.0-20181023061248-df4b14cdce57
Repository: https://github.com/metonimie/simplft.git
Documentation: pkg.go.dev
# Packages
This file contains the configuration settings for the server.
# Functions
ChangeDirectory changes the current working directory with respect to BasePath.
ChangeDirectoryCommand changes the directory to the given directory.
ChangeDirectoryToPrevious changes the current working directory to the previous one, doesn't go past the BasePath.
ClearScreen cleans the client's screen by sending clear to the terminal.
GetFile sends the file to the client and returns true if it succeeds and false otherwise.
No description provided by the author
No description provided by the author
No description provided by the author
ListFiles list the files from path and sends them to the connection.
MakePathFromStringStack gets a StringStack and makes a path.
MakeStringStack initializes a new StringStack pointer.
No description provided by the author
SendASCIIPic sends an image as ascii text to the client.
ShowHelp writes the help text to the client.
No description provided by the author
No description provided by the author
No description provided by the author
StartUploadServer starts the uploading server.
UploadFile uploads a file to the server.
# Variables
PATH is the constant which should contain the fixed path where the simpleFTP server will run This will act like a root cage.
ConfigName is used by the config package to find the config file.
ConfigPath is used by the config package to find the path of the config file.
PathErrors.
PathErrors.
PathErrors.
PathErrors.
Stack Errors.
General Errors.
Command Errors represent errors that occur when the server is executing commands.
Input Errors.
Input Errors.
Input Errors.
Shutdown is the shutdown where SIGINT and SIGTERM is send too.
Stack Errors.
Stack Errors.
Stack Errors.
# Structs
FTPClient represents a FTPClient connection, it holds a root cage and the underlying connection.
InputError will be raised when the input given to the parser by the client is not right.
No description provided by the author
No description provided by the author
StringStack is a stack that holds string objects.