file.TFind
From GMod Wiki
Function | |
Syntax |
file.TFind( String Filename/Directory, Function Function ) Where is this used? |
Description: | |
Finds a list of files and folders within a directory and calls the provided callback function with the arguments: Directory you searched String , Table of folders Table :String , Table of filenames Table :String |
|
Returns: | nil |
Part of Library: | File |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=File.TFind]File.TFind [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Additional Notes
- Unlike file.Find, paths are relative to the garrysmod folder, not the data folder.
- Files and Folders returned will be names, not paths. For example, if it finds the folder "lua/weapons/", the value in the table will be only "weapons". File names will also contain their extension, as in file.Find.