1、实现目录读取功能

This commit is contained in:
asypost committed 2026-06-27 18:37:37 +08:00
1 parent 6e60886fd3
commit fe476dff69
11 files changed
+320 -116

No files matched your search

+4 -5
View File
@@ -9,7 +9,6 @@
#include "seafile/seafile_api.hpp"
#include "seafile/token_type.hpp"
#include "seafile/fs/file_context.hpp"
namespace seafile::fs
{
@@ -19,15 +18,15 @@ namespace seafile::fs
std::string token;
TokenType token_type = TokenType::TOKEN;
SeaFileApi api;
std::wstring mount_point;
std::wstring volume_label;
public:
explicit SeafileFileSystem(const std::string& server,
const std::wstring& mount_point) : api(server), mount_point(mount_point)
const std::wstring& volume_label) : api(server), volume_label(volume_label)
{
}
void auth(const std::string& username, const std::string& password);
tl::expected<void, SeafileException> initialize(const std::string& username, const std::string& password);
SeafileFileSystem(const SeafileFileSystem&) = delete;
@@ -37,7 +36,7 @@ namespace seafile::fs
SeafileFileSystem& operator=(SeafileFileSystem&&) = delete;
NTSTATUS GetVolumeInfo(FSP_FSCTL_VOLUME_INFO* VolumeInfo);
NTSTATUS GetVolumeInfo(FSP_FSCTL_VOLUME_INFO* VolumeInfo) const;
NTSTATUS SetVolumeLabel_(PWSTR VolumeLabel,
FSP_FSCTL_VOLUME_INFO* VolumeInfo);