Dokumentation
files
modulPaperVelocity
Read and write text and JSON files in the plugin's 'files' folder, without blocking the server.
import filesFunktioner 9
Text of a file, or none if it does not exist.
Lines of a file as a list (empty if it does not exist).
Writes a file, replacing what was there. Folders are created as needed.
Adds a line to the end of a file. Good for logs.
Decoded JSON content of a file, or the default if it does not exist.
Writes a value (map, list...) to a file as readable JSON.
True if the file or folder exists.
Deletes a file or an empty folder. Returns true if something was deleted.
Names of the files and folders in a folder (folders end with /).