dir (Directory)
Use the directory commands to list folders and files, create folders, and delete folders within the following locations on the file system:
media/
: The location for media files.design/
: The location where uncompressed design configuration files reside when a design is being emulated or running on a Core. Note that this directory is not intended for storage of user-created files, and is not remotely accessible.
Note: For security and stability reasons, the media/
folder and design/
folder and their subfolders are the only locations within the file system accessible by the Lua libraries. Any path argument must begin with either media/
or design/
. The dir
library only creates, removes, or displays the contents of a directory. It cannot manipulate files.
Name |
Arguments |
Description |
---|---|---|
dir.get() |
path |
Specify a |
dir.create() |
path |
Specify a |
dir.remove() |
path |
Specify a |