7
extractFile
Pk11 edited this page 2020-11-01 15:50:21 -06:00

The extractFile function has 4 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?

message -> Message while extracting.

Example for extracting a folder:

{
    "type": "extractFile",
    "file": "/Spritesheets.zip",
    "input": "",
    "output": "/LeafEdit/",
    "message": "Extracting SpriteSheets... please wait."
}

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",
    "message": "Extracting SpriteSheets... please wait."
}