Skip to content

Commit bc07f84

Browse files
authored
(FUSE) Implemented FileSystemCloseMethod (#24)
1 parent 644aa79 commit bc07f84

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

SecureFolderFS.Core.FUSE/FuseWrapper.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ public Task<bool> CloseFileSystemAsync(FileSystemCloseMethod closeMethod)
4242
if (_fuseMount == null)
4343
throw new InvalidOperationException("The filesystem has not been started.");
4444

45-
_ = closeMethod; // TODO: Implement close method
46-
return _fuseMount.UnmountAsync();
45+
return _fuseMount.UnmountAsync(force: closeMethod == FileSystemCloseMethod.CloseForcefully);
4746
}
4847
}
4948
}

0 commit comments

Comments
 (0)