1、实现目录读取功能
This commit is contained in:
1 parent
6e60886fd3
commit
fe476dff69
11 files changed
+320
-116
No files matched your search
@@ -65,15 +65,19 @@ namespace seafile::fs
|
||||
}
|
||||
auto mount_point = std::wstring(L"X:");
|
||||
auto seafile_file_system = new SeafileFileSystem("https://pan.hanwangsoft.com", mount_point);
|
||||
seafile_file_system->auth("asypost@yeah.net", "Shell0805@china");
|
||||
if (const auto ret= seafile_file_system->initialize("asypost@yeah.net", "Shell0805@china"); !ret.has_value())
|
||||
{
|
||||
Result = STATUS_UNSUCCESSFUL;
|
||||
FspFileSystemDelete(FileSystem);
|
||||
delete seafile_file_system;
|
||||
|
||||
return Result;
|
||||
}
|
||||
FileSystem->UserContext = seafile_file_system;
|
||||
fstab.insert({FileSystem, seafile_file_system});
|
||||
|
||||
Result = FspFileSystemSetMountPoint(FileSystem, static_cast<PWSTR>(mount_point.data()));
|
||||
|
||||
DWORD LastError = GetLastError();
|
||||
std::cout << LastError << std::endl;
|
||||
|
||||
if (!NT_SUCCESS(Result))
|
||||
{
|
||||
FspFileSystemDelete(FileSystem);
|
||||
@@ -208,7 +212,7 @@ namespace seafile::fs
|
||||
SECURITY_INFORMATION SecurityInformation,
|
||||
PSECURITY_DESCRIPTOR ModificationDescriptor)
|
||||
{
|
||||
return STATUS_NOT_IMPLEMENTED;
|
||||
return STATUS_ACCESS_DENIED;
|
||||
}
|
||||
|
||||
NTSTATUS WinFSPAdapter::GetSecurity(FSP_FILE_SYSTEM* FileSystem, PVOID FileContext,
|
||||
|
||||
Reference in new issue
Block a user