While executing the following code I observe an error in the line
public static void WriteZipFile(List<string> filesToZip, string path, int compression)
Code :
using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
using ICSharpCode.SharpZipLib.Checksums;
using ICSharpCode.SharpZipLib.Zip;
/* some code */
public static void WriteZipFile(List<string> filesToZip, string path, int compression)
/* some code */
Crc32 crc32 = new Crc32();
ZipOutputStream stream = new ZipOutputStream(File.Create(path));
stream.SetLevel(compression);
Other info : Path = C:\\Users\\test\\Documents\\details\Local Code\\project\\projectwebsite\\PublishedSources\\
Error:
Could not find a part of the path 'C:\Users\test\Documents\details\Local Code\project\projectwebsite\PublishedSources\'.