mirror of
https://github.com/claunia/romrepomgr.git
synced 2025-12-16 19:24:51 +00:00
Implement getfileinfo in winfsp.
This commit is contained in:
@@ -229,5 +229,20 @@ namespace RomRepoMgr.Core.Filesystem
|
||||
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
public override int GetFileInfo(object fileNode, object fileDesc, out FileInfo fileInfo)
|
||||
{
|
||||
fileInfo = default;
|
||||
|
||||
if(!(fileNode is long handle))
|
||||
return STATUS_INVALID_HANDLE;
|
||||
|
||||
if(!_fileStatHandleCache.TryGetValue(handle, out FileInfo info))
|
||||
return STATUS_INVALID_HANDLE;
|
||||
|
||||
fileInfo = info;
|
||||
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user