Contents

Treatments group for manipulating files and directories.

Available Treatments

These are the treatments currently provided by the "Contents" treatment group:

TreatmentArgumentsDescription

contents.move

["source", "destination"]

Moves a single directory/file from "source" to "destination". Paths relative to application root. The "source" can contain a pattern. Similar to usage of the mv command in Linux.

contents.delete

["path"]

Deletes a directory/file. Path relative to application root.

Example:

{
    ...
    "treatments": [
        {
            "treatment": "contents.move", "arguments": ["newozero/", "apps/newozero/"]
        },
    ],
    ...
}

Last updated