Ducker.FileHelper (ducker v0.2.0)

View Source

Summary

Functions

Lists files in a directory (sorted). By default, hidden files are included.

Functions

list_files(path, opts \\ [])

Lists files in a directory (sorted). By default, hidden files are included.

Options:

  • :exclude_hidden - If true, hidden files (starting with ".") are not included.
  • :ext - If provided, only files with this extension are included.
  • :filter - A function to filter files. It should take a file name as an argument and return true or false.