static void ZipTo(string sourcePath, string destFilePath) { // Need to provide relative paths here, not full paths. var files = Directory.GetFiles(sourcePath) .Select(x => Path.GetFileName(x)) .ToArray(); ZipFileCompressor z = new ZipFileCompressor(destFilePath, sourcePath, files, deleteIfOutputExists: true); }