Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could the filter show real size of source file ? #1

Open
vwu00000 opened this issue Dec 5, 2018 · 1 comment
Open

Could the filter show real size of source file ? #1

vwu00000 opened this issue Dec 5, 2018 · 1 comment

Comments

@vwu00000
Copy link

vwu00000 commented Dec 5, 2018

No description provided.

@aleksk
Copy link
Owner

aleksk commented Jan 28, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants