dokan-dev / dokany

User mode file system library for windows with FUSE Wrapper
http://dokan-dev.github.io
5.21k stars 661 forks source link

How to know the directory update event in memfs when user clicks F5 keyword. #1238

Closed cowboy823 closed 1 month ago

cowboy823 commented 1 month ago

Feature request can skip this form. Bug report must complete it. Check List must be 100% match or it will be automatically closed without further discussion. Please remove this line.

Environment

Check List

Description

I'm developing a remote drive that can use a remote directory on an FTP server like local drive(now using memfs project for this one). To speed up findfile call, I'm using cahced directory table obtained from ftp server the time it's run. now this one works perfectly but I have to update this cached directory table by several cause. I think it's reasonable to update cached directory table when user clicks F5 keyword. But I don't know where to get this refresh event. Thank you for any help.

Logs

Please attach in separate files: mirror output, library logs and kernel logs. In case of BSOD, please attach minidump or dump analyze output.

LTRData commented 1 month ago

The F5 key does not send anything special really. It just flushes internal cache in the Explorer window and requests a new directory listing from your file system driver through FindFiles.