Progetto H — Riferimento API Documentazione & Scripting
Funzione statica Condiviso Lento

File.GetFiles

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

Non ancora tradotto

Sintassi

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

Parametri

Nome Tipo Predefinito Descrizione
path_filter facoltativo string|table "" Path filter
extension_filter facoltativo string "" E.g.: <code>.lua</code>
max_depth facoltativo integer -1 The maximum depth to go further in the folders while searching. Pass -1 for maximum depth

Valore restituito

  • string[] List of files