List directory content
-- List directory, recursive:
local ls = require("gears.filesystem.ls")
ls('/tmp', function(result) dbg.dump(result) end, true)
gears.filesystem.ls (directory, callback, recursive) List directory content.
gears.filesystem.ls (directory, callback, recursive)
List directory content.
- directory (string) The directory path.
- callback (function) Will be fired when directory was parsed with the resulting list of files as argument.
- recursive (boolean) Work recursively. Default false.