Created
November 11, 2019 21:32
-
-
Save DominicFinn/21b5d747dcc68c15fb0f96a4cd02610a to your computer and use it in GitHub Desktop.
Unzip into the same folder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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