EFFECTS

Copy a file or directory

It also allows you to specify a parameter for overwriting if the file already exists

copy %path% to %path%
copy file "plugins/Skcrew.jar" to file "./"

Create a simple file

It also allows you to specify the text content of the file being created

[(async/sync)] create %path% [with content %strings%]
create file "eula.txt" with content "eula=true"

Delete a file or directory

[(async/sync)] delete %path%
delete file "plugins/Skript-2.11.1.jar"

Move a file or directory

[(async/sync)] move %paths% to %path%
move file "plugins" to file "disabled_plugins"

Rename a file or directory

[(async/sync)] rename %path% to %string%
rename file "plugins/Skript/scripts/mycoolscript.sk" to "-mycoolscript.sk"

Unpack the zip archive

[(async/sync)] unzip %path% to %path%
unzip file "myarchive.zip" to file "./"

Create a zip archive

[(async/sync)] zip %path% to %path%
zip file "world/" to file "backupworld.zip"

Download a file

[(async/sync)] download file from [url] %string% (and store it in|to) %path%
async download file from "https://github.com/SkriptLang/Skript/releases/download/2.11.1/Skript-2.11.1.jar" to "plugins/Skript-2.11.1-FILE.jar"

The code in this example will download Skript 2.11.1 to the /plugins/ directory with Skript-2.11.1-FILE.jar as the name of the file.