I am working on a file parser which parses ASCII text files generated from unix/linux in form of a bundle.
Upon searching, I came across PathTooLongException C# 4.5 in which AlphaFS is recommended.
I am using AlphaFS and the basic copy, paste, move functions work fine.
As this utility mimics System.IO, I referenced.
Alphaleonis.Win32.Filesystem;
However, FileStream fs = File.OpenRead(archiveFilenameIn);
<-- FileStream asks me to reference System.IO.
In my program, I am using FileStream, Stream, FileAttributes, FileMode, FileAccess functions.
How can I implement the same using AlphaFS? Please do let me know if there is a better way to handle files with long paths.
UPDATE: I am using SharpZipLib to extract the contents of the bundle. The bundle could be in form of .tar or .tgz
The error occurs while extraction.
TarArchive tarArchive = TarArchive.CreateInputTarArchive(gzipStream);
tarArchive.ExtractContents(destFolder); <-- This line throws the error.
tarArchive.Close();
Upon looking into the definition, there is a reference of System.IO in TarArchive class of SharpZipLib.Tar