Skip to content

file_search

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

file_search( filetype, directory, *sub, output )

Returns: [LinkedList](LinkedList)

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

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

Arguments

Name Type Purpose
filetype string The file extension to search for.
directory string The directory to start searching from.
*sub bool optional: If true, will include sub-directories.
output [__Stream__](__stream__) optional: If provided, this output stream will be used
Clone this wiki locally