sftp_server_file.h
error_t sftpServerGetRealPath(SftpServerSession *session, const SshString *path, SftpName *name)
Canonicalize a given path name to an absolute path.
Definition: sftp_server_file.c:53
SftpFileObject * sftpServerFindFile(SftpServerSession *session, const SshBinaryString *handle)
Find the file that matches a given handle.
Definition: sftp_server_file.c:821
error_t sftpServerSetFileStat(SftpServerSession *session, const SshString *path, const SftpFileAttrs *attributes)
Modify file attributes.
Definition: sftp_server_file.c:231
SFTP server.
error_t sftpServerOpenFile(SftpServerSession *session, const SshString *path, uint32_t pflags, const SftpFileAttrs *attributes, uint32_t *handle)
Open a file.
Definition: sftp_server_file.c:397
error_t sftpServerGetFileStat(SftpServerSession *session, const SshString *path, SftpFileAttrs *attributes)
Retrieve file attributes.
Definition: sftp_server_file.c:93
error_t sftpServerGetFileStatEx(SftpServerSession *session, const SshBinaryString *handle, SftpFileAttrs *attributes)
Retrieve file attributes.
Definition: sftp_server_file.c:191
error_t sftpServerWriteData(SftpServerSession *session)
Write data to the specified file.
Definition: sftp_server_file.c:623
error_t sftpServerSetFileStatEx(SftpServerSession *session, const SshBinaryString *handle, const SftpFileAttrs *attributes)
Modify file attributes.
Definition: sftp_server_file.c:267
error_t sftpServerWriteFile(SftpServerSession *session, const SshBinaryString *handle, uint64_t offset, const uint8_t *data, uint32_t fragLen, uint32_t totalLen)
Write the specified file.
Definition: sftp_server_file.c:561
error_t sftpServerRemoveFile(SftpServerSession *session, const SshString *path)
Remove a file.
Definition: sftp_server_file.c:356
error_t sftpServerReadData(SftpServerSession *session)
Read data from the specified file.
Definition: sftp_server_file.c:731
error_t sftpServerRenameFile(SftpServerSession *session, const SshString *oldPath, const SshString *newPath)
Rename the specified file.
Definition: sftp_server_file.c:302
error_t sftpServerCloseFile(SftpServerSession *session, const SshBinaryString *handle)
Close a file.
Definition: sftp_server_file.c:780
error_t sftpServerReadFile(SftpServerSession *session, const SshBinaryString *handle, uint64_t offset, uint32_t *length)
Read the specified file.
Definition: sftp_server_file.c:660