LazyCopy icon indicating copy to clipboard operation
LazyCopy copied to clipboard

Could the filter show real size of source file ?

Open vwu00000 opened this issue 6 years ago • 1 comments

vwu00000 avatar Dec 05 '18 23:12 vwu00000

Are you talking about the file size in Explorer? As far as I remember, it relies on directory enumeration, not on the NtQueryInformationFile, i.e. FindFirstFile/FindNextFile. You'll need to handle the IRP_MJ_DIRECTORY_CONTROL and fix the sizes there.

Someone can just replace the original file making your local information incorrect. Some systems also return incorrect values if you query remote file info. Do you want to show incorrect file sizes? I chose not to emulate size to avoid potential confusion, when you open 1KB file, and suddenly see 10MB of data there.

aleksk avatar Jan 28 '19 00:01 aleksk