-
Notifications
You must be signed in to change notification settings - Fork 1
Lua API
김시후 edited this page Nov 11, 2023
·
3 revisions
An API for developing simple apps for Shuffle. For more complex apps, see the Developing apps with C++ document.
Using: fs.exists(path)
Return: Boolean (whether the path exists)
Check if the path exists.
Using: fs.list(path)
Return: List of files
Get the subfiles of path (path must be a directory)
Using: fs.isDir(path)
Return: Boolean (whether path is a directory)
Check if path is a directory.
Using: fs.isFile(path)
Return: Boolean (whether path is a file)
Check if path is a file.
Using: fs.isFile(path)
Create a directory.
Using: fs.readFile(path)
Return: String (File content)
Read a file.