Skip to content

Iterative directory listing library for Elixir

License

Notifications You must be signed in to change notification settings

team-telnyx/exdir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Installation

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

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

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

About

Iterative directory listing library for Elixir

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages