ftp_server_misc.c
Path manipulation helper functions.
const char_t * ftpServerStripRootDir(FtpServerContext *context, const char_t *path)
Strip root dir from specified pathname.
Definition: ftp_server_misc.c:324
uint32_t netGetRandRange(uint32_t min, uint32_t max)
Generate a random value in the specified range.
Definition: net.c:413
const char_t * ftpServerStripHomeDir(FtpClientConnection *connection, const char_t *path)
Strip home directory from specified pathname.
Definition: ftp_server_misc.c:362
FTP data connection.
size_t ftpServerFormatDirEntry(const FsDirEntry *dirEntry, uint_t perm, char_t *buffer)
Format a directory entry in UNIX-style format.
Definition: ftp_server_misc.c:233
time_t convertDateToUnixTime(const DateTime *date)
Convert date to Unix timestamp.
Definition: date_time.c:260
Helper functions for FTP server.
void ftpServerTick(FtpServerContext *context)
Handle periodic operations.
Definition: ftp_server_misc.c:51
void ftpServerCloseDataChannel(FtpClientConnection *connection)
Close data connection.
Definition: ftp_server_data.c:756
error_t ftpServerGetPath(FtpClientConnection *connection, const char_t *inputPath, char_t *outputPath, size_t maxLen)
Retrieve the full pathname.
Definition: ftp_server_misc.c:130
void ftpServerCloseConnection(FtpClientConnection *connection)
Close client connection properly.
Definition: ftp_server_misc.c:398
uint_t ftpServerGetFilePermissions(FtpClientConnection *connection, const char_t *path)
Get permissions for the specified file or directory.
Definition: ftp_server_misc.c:182
void ftpServerCloseControlChannel(FtpClientConnection *connection)
Close control connection.
Definition: ftp_server_control.c:417
FTP server (File Transfer Protocol)
void pathRemoveSlash(char_t *path)
Remove the trailing slash from a given path.
Definition: path.c:360
uint16_t ftpServerGetPassivePort(FtpServerContext *context)
Get a passive port number.
Definition: ftp_server_misc.c:88
FTP control connection.
Debugging facilities.
void pathCombine(char_t *path, const char_t *more, size_t maxLen)
Concatenate two paths.
Definition: path.c:394