scp_server_directory.c
Path manipulation helper functions.
error_t scpServerCreateDir(ScpServerSession *session, const char_t *name)
Create a directory.
Definition: scp_server_directory.c:54
Helper functions for SCP server.
error_t scpServerOpenFileForReading(ScpServerSession *session)
Open a file for reading.
Definition: scp_server_file.c:122
void scpServerGetNextDirEntry(ScpServerSession *session)
Fetch the next entry from the directory.
Definition: scp_server_directory.c:159
Directory operations.
error_t fsReadDir(FsDir *dir, FsDirEntry *dirEntry)
Read an entry from the specified directory stream.
Definition: fs_port_fatfs.c:859
error_t scpServerOpenDir(ScpServerSession *session)
Open a directory.
Definition: scp_server_directory.c:113
SCP server.
File operations.
@ SCP_SERVER_SESSION_STATE_READ_COMMAND
Definition: scp_server.h:158
uint_t scpServerGetFilePermissions(ScpServerSession *session, const char_t *path)
Get permissions for the specified file or directory.
Definition: scp_server_misc.c:1125
bool_t fsDirExists(const char_t *path)
Check whether a directory exists.
Definition: fs_port_fatfs.c:667
void pathRemoveSlash(char_t *path)
Remove the trailing slash from a given path.
Definition: path.c:360
Secure Shell (SSH)
void pathRemoveFilename(char_t *path)
Remove the trailing file name from the supplied path.
Definition: path.c:120
Debugging facilities.
void pathCombine(char_t *path, const char_t *more, size_t maxLen)
Concatenate two paths.
Definition: path.c:394