Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 801 Bytes

File metadata and controls

29 lines (19 loc) · 801 Bytes

Module gears.filesystem.ls

List directory content

Usage:

-- 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.

Functions

gears.filesystem.ls (directory, callback, recursive)

List directory content.

Parameters:

  •    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.