Skip to content

extractFile

Pk11 edited this page Jan 22, 2023 · 11 revisions

The extractFile function has 3 parameters. It extracts files matching a RegExp from an archive.

  • file -> The Path to the Archive
  • input -> What exactly in the Archive should be extracted? This will be parsed as a RegExp
  • output -> Where should it be extracted?

Example for extracting a folder:

{
    "type": "extractFile",
    "file": "/Spritesheets.zip",
    "input": "",
    "output": "/LeafEdit/"
}

⚠️ Note that the output folders must end in a /

Example for extracting a file:

{
    "type": "extractFile",
    "file": "/LeafEdit.7z",
    "input": "LeafEdit.3dsx",
    "output": "/3ds/LeafEdit.3dsx"
}