Skip to content

Instantly share code, notes, and snippets.

@DominicFinn
Created November 11, 2019 21:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DominicFinn/21b5d747dcc68c15fb0f96a4cd02610a to your computer and use it in GitHub Desktop.
Save DominicFinn/21b5d747dcc68c15fb0f96a4cd02610a to your computer and use it in GitHub Desktop.
Unzip into the same folder
#r "System.IO.Compression"
#r "System.IO.Compression.FileSystem"
open System.IO
open System.IO.Compression
let path = "**path**"
let dir = new DirectoryInfo(path)
dir.GetFiles()
|> Seq.filter(fun file -> file.Name.Contains(".zip"))
|> Seq.iter(fun file -> ZipFile.ExtractToDirectory(file.FullName, path))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment