Quantcast
Channel: sharpcompress Discussions Rss Feed
Viewing all articles
Browse latest Browse all 239

New Post: Great library!

$
0
0
A simple foreach loop will work, try this code with some bogus files first, since i haven't tested it.

string files = Directory.GetFiles(directory).Where(name => !name.EndsWith(".zip"));
foreach (string f in files)
{
File.Delete(f);
}

Viewing all articles
Browse latest Browse all 239

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>