You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running under Windows or Wine (and likely other systems where mono does not have native file change notifications), FileSystemWatcher is returning the full path and not the relative path in the FileSystemEventArgs.Filename property, and that is being concatenated with the FileSystemWatcher's path
Steps to Reproduce
Create a FileSystemWatcher watching for changes in a directory
edit: 5.20.1.34 was the last version to correctly combine the watcher path with the filename into the FullPath; 6.0 onwards concatenates the watcher path with the filename into the FullPath.
The text was updated successfully, but these errors were encountered:
Mono running under Windows or Wine sets the `Name` in the `FileSystemEventArgs` to the absolute path of the file rather than the relative path, resulting in `FullPath` being an invalid path. Work around this by using `Name` if it's an absolute path.
This has been reported as mono/mono#21677
Mono running under Windows or Wine sets the `Name` in the `FileSystemEventArgs` to the absolute path of the file rather than the relative path, resulting in `FullPath` being an invalid path. Work around this by using `Name` if it's an absolute path.
This has been reported as mono/mono#21677
When running under Windows or Wine (and likely other systems where mono does not have native file change notifications), FileSystemWatcher is returning the full path and not the relative path in the
FileSystemEventArgs.Filename
property, and that is being concatenated with the FileSystemWatcher's pathSteps to Reproduce
Current Behavior
Expected Behavior
On which platforms did you notice this
[ ] macOS
[ ] Linux
[x] Windows
[x] Wine
Version Used:
6.12.0.199
edit: 5.20.1.34 was the last version to correctly combine the watcher path with the filename into the
FullPath
; 6.0 onwards concatenates the watcher path with the filename into theFullPath
.The text was updated successfully, but these errors were encountered: