ZE - File List
v1.0.0
Overview
This plugin maintains a list of all files available in a project's directory. This allows the game to know what files are available to it without looking directly at the filesystem every time it needs to check. This also allows games in web mode to know what files are available to it, as the results are stored in a file within the game's data folder (this can be changed). The file list is updated every time the game is started in local mode.
Installation
This plugin requires zAPI - File Tools!
Once you have the API installed,
grab the File List here!
Usage
This plugin maintains a list of files present in a project so that other plugins can easily identify all the files available to them. This plugin provides functions to search the list with regular expressions.
The file list can be directly accessed via FileList._list
There are 3 functions available to filter the results found in the file list:
To just look at file names, use
FileList.scan(regex).
To just look at file paths, use
FileList.scanPath(regex).
To look at both the file path and file name, use
FileList.scanWithPath(regex).
All of the scanning functions will return an array with results that match your regex. If no items matched, the array will be empty.
License
This plugin is released under the
Creative Commons By Attribution 4.0 license. You may do anything with this plugin, including use it in a commercial project or plugin. The only restriction imposed upon you is that you must credit me, and you may not claim that you wrote the original plugin.