asdasdad
asdasdad

Reputation: 862

Error when trying to extract with DotNetZip

I have a program that unzips downloaded files through DotNetZip when the download is finished. I get the save-path from a .txt-file, because it has to be extracted to a specific folder in a folder-system. There is one folder for files with no specific save-folder.
The program works well but sometimes I get an error message saying:

Part of the path could not be found!

bei System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) bei System.IO.Directory.InternalCreateDirectory(String fullPath, String path, DirectorySecurity dirSecurity) bei System.IO.Directory.CreateDirectory(String path, DirectorySecurity directorySecurity) bei System.IO.Directory.CreateDirectory(String path) bei Ionic.Zip.ZipEntry.ValidateOutput(String basedir, Stream outstream, String& outFileName) bei Ionic.Zip.ZipEntry.InternalExtract(String baseDir, Stream outstream, String password) bei Ionic.Zip.ZipEntry.Extract(String baseDirectory, ExtractExistingFileAction extractExistingFile) bei dvw002.Form1.backgroundWorker1_DoWork(Object sender, DoWorkEventArgs e)

I don't know why this is happening, because 95% of the files get extracted normally, and the path exists...

Upvotes: 0

Views: 1796

Answers (1)

Alex KeySmith
Alex KeySmith

Reputation: 17101

Just a guess, but I sometimes get trouble with other zip programs when the extracted path exceeds the maximum length (it's suprisingly short).

Naming Files, Paths, and Namespaces on MSDN.

Upvotes: 1

Related Questions