Filesystem

Documentation of filesystem-related Synapse Z environment functions

readfile

string readfile(path: string)

returns file contents of the specified path

writefile

void writefile(path: string, content: string)

writes the file content to the specified path

appendfile

void appendfile(path: string, content: string)

appends the file content of the specified path

loadfile

function loadfile(path: string)

loads the specified path file content

isfile

bool isfile(path: string)

returns whenever the specified path is a file

delfile

void delfile(path: string)

deletes the file at the specified path

makefolder

void makefolder(path: string)

creates a folder at the specified path

isfolder

bool isfolder(path: string)

returns whenever the specified path is a folder

delfolder

void delfolder(path: string)

deletes the folder at the specified path

listfiles

table<string> listfiles(path: string)

lists all files and folders in the specified path

getcustomasset

string getcustomasset(path: string)

writes the specified path file content to the roblox directory and returns a rbxasset