Skip to content

file_get_directory

Hyomoto edited this page Jun 24, 2021 · 5 revisions
Jump To Go Back Arguments

file_get_directory( directory, mask, *sub )

Returns: array

Searches the given directory for files that match the mask. If sub is true, all sub directories will also be traversed.

var _files = file_get_directory( working_directory, "*.txt", false );
Output: A list of all the files in the working directory that end with .txt

Arguments

Name Type Purpose
directory string The directory to start searching from.
mask string The mask to search with
*sub bool optional: If true, will include sub-directories.
Clone this wiki locally