My open source software synchronizes a remote folder to the local desktop. The remote folder can be on Alfresco, where path length has no limit (/root/very/very/very/long/name.txt
).
When developing the application I used System.IO.File.OpenWrite
and System.IO.Stream.Write
, but it appears that they don't support paths over a few hundred characters, so users report errors like PathTooLongException
when working with long paths.
UNC paths must absolutely be avoided, because they lead to incompatibility with some applications.
What library/code should be used in this case?
It must be open source C#.