An iterative directory listing for Elixir.



ExDir - Iterative directory listing library

Copyright (c) 2020 Telnyx LLC.

dirent is an iterative directory listing for Elixir.

Elixir function File.ls/1 return files from directories after reading them from the filesystem. When you have an humongous number of files on a single folder, File.ls/1 will block for a certain time.

In these cases you may not be interested in returning the full list of files, but instead you may want to list them iteratively, returning each entry after the another to your process, at the moment they are taken from readdir.


The package can be installed by adding exdir to your list of dependencies in mix.exs:

def deps do
    {:exdir, "~> 0.1.0"}

Further docs can be found at https://hexdocs.pm/exdir.