-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Fix: Fixed FileNotFoundException in Recycle Bin watcher #15808
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only FileSystemWatcher.EnableRaisingEvents produces this exception when the path isn't locatable by CreateFile Win32 API, what about wrapping just it with SafetyExtention?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@0x5bfa I don't think wrapping |
Why not check if exists before instancing it. |
We check on line 51 but that doesn't seem to help. |
This method doesn't work sometimes lol I'm wondering why. // bool StorageHelper.IfExists(string path);
HANDLE hFile = CreateFileW(path, ...);
if (hFile == -1) return false; |
It's something to look into |
…)" This reverts commit 8260de7.
)" This reverts commit 7c7d14d.
Resolved / Related Issues
To prevent extra work, all changes to the Files codebase must link to an approved issue marked as
Ready to build
. Please insert the issue number following the hashtag with the issue number that this Pull Request resolves.Steps used to test these changes
Stability is a top priority for Files and all changes are required to go through testing before being merged into the repo. Please include a list of steps that you used to test this PR.