Filesystem
Basic filesystem functions for basic filesystem needs.
writefile(file: string)
This function writes a file or creates a file to the local filesystem, in a shared region.
readfile(file: string): buffer
This is a potentially dangerous function and could lead to security issues.
This function reads a file from the local filesystem, in the shared folder. It is important you do not expose your environment to foreign files and restrict it to a shared region. Returns a buffer
deletefile(file: string)
This is a dangerous function. Treat with caution.
This function deletes a file from the local filesystem, it is CRITICAL that you limit this function to the shared region and add safeguards to prevent operating system DESTRUCTION. Letting this function access foreign areas could cause CATASTROPHIC damage to the user.
Last updated
Was this helpful?