Unfortunately, the SMB protocol is not supported by Rebex components directly.
Rebex.IO.Compression.ZipArchive
uses System.IO.FileStream
to handle string paths.
I was able to successfully read and write ZIP content using UNC paths in formats like:
new ZipArchive(@"\\server\home\user\data\test.zip")
new ZipArchive(@"\\?\h:\data\test.zip")
For the second case, adding following configuration section is needed if running on .NET 4.6.1 or lower.
<runtime>
<AppContextSwitchOverrides value="Switch.System.IO.UseLegacyPathHandling=false;Switch.System.IO.BlockLongPaths=false"/>
</runtime>
Please note that you can also initialize the ZipArchive
using a stream (see ZipArchive(Stream)). If you are able to provide data from/to your shared folder using a stream, you can use this override.
Update: UNC paths are Windows-only. They won't work on Linux.