Implement close in winfsp.

This commit is contained in:
2020-09-03 02:38:05 +01:00
parent b6ceb7f43d
commit 92956b60eb

View File

@@ -197,5 +197,14 @@ namespace RomRepoMgr.Core.Filesystem
return STATUS_SUCCESS;
}
public override void Close(object fileNode, object fileDesc)
{
if(!(fileNode is long handle))
return;
_vfs.Close(handle);
_fileStatHandleCache.TryRemove(handle, out _);
}
}
}