Long path support with file system watcher
In our client application implemented in C# with .Net framework 4.8 (OS: Windows server), we are using file system watcher control to detect folder events. To support a long path we are using prefixes as \\?\
for local folders and \\?\UNC\
for network paths.
EnableRaisingEvents property is set to true
The network path works well with the long path prefix and receives events. However, when we add watcher on local folders with long path prefixes, an error throws with the message
The given path's format is not supported.
Please see the attached results with and without long path prefixes.
Thanks
Regards