WLJS LogoWLJS Notebook

ExtractArchive

ExtractArchive[source] expands an archive file, saving its content into the current directory.

  • ExtractArchive[source,dir] saves the content of an archive file into directory dir.
  • ExtractArchive[source,dir,pattern] extracts only files whose names match pattern.

Examples

(* Extract a ZIP archive to current directory *)
ExtractArchive["data.zip"]

(* Extract to specific directory *)
ExtractArchive["archive.tar.gz", "/tmp/extracted"]

(* Extract only certain files *)
ExtractArchive["package.zip", "/tmp", "*.txt"]

Please visit the official Wolfram Language Reference for more details.

On this page