sftp_server_directory.c
error_t sftpServerOpenDir(SftpServerSession *session, const SshString *path, uint32_t *handle)
Open a directory.
Definition: sftp_server_directory.c:131
Path manipulation helper functions.
error_t sftpServerCloseDir(SftpServerSession *session, const SshBinaryString *handle)
Close a directory.
Definition: sftp_server_directory.c:345
error_t sftpServerReadDir(SftpServerSession *session, const SshBinaryString *handle, SftpName *name)
Read an entry from the specified directory.
Definition: sftp_server_directory.c:223
error_t sftpServerRemoveDir(SftpServerSession *session, const SshString *path)
Remove a directory.
Definition: sftp_server_directory.c:92
SFTP server.
Directory operations.
uint32_t sftpServerGenerateHandle(SftpServerSession *session)
Generate a unique handle.
Definition: sftp_server_misc.c:803
SftpFileObject * sftpServerFindDir(SftpServerSession *session, const SshBinaryString *handle)
Find the directory object that matches a given handle.
Definition: sftp_server_directory.c:386
error_t fsReadDir(FsDir *dir, FsDirEntry *dirEntry)
Read an entry from the specified directory stream.
Definition: fs_port_fatfs.c:859
Helper functions for SFTP server.
#define SSH_FILEXFER_ATTR_FLAGS_READONLY
Definition: sftp_common.h:69
uint_t sftpServerGetFilePermissions(SftpServerSession *session, const char_t *path)
Get permissions for the specified file or directory.
Definition: sftp_server_misc.c:852
Secure Shell (SSH)
error_t sftpServerGetPath(SftpServerSession *session, const SshString *path, char_t *fullPath, size_t maxLen)
Retrieve the full pathname.
Definition: sftp_server_misc.c:905
error_t sftpServerCreateDir(SftpServerSession *session, const SshString *path, const SftpFileAttrs *attributes)
Create a directory.
Definition: sftp_server_directory.c:54
Debugging facilities.
void pathCombine(char_t *path, const char_t *more, size_t maxLen)
Concatenate two paths.
Definition: path.c:394