nanos world API Reference Unofficial documentation
Static function Shared Slow

File.GetDirectories

Gets a list of all directories given a path, optionally with filters. Note that the results may differ between Linux and Windows due to the way the file system works

Syntax

Lua
File.GetDirectories(path_filter = "", max_depth = -1)

Parameters

Name Type Default Description
path_filter optional string "" Path filter
max_depth optional integer -1 The maximum depth to go further in the folders while searching. Pass -1 for maximum depth

Returns

  • string[] List of directories