[erlang-questions] file finders

Bengt Kleberg <>
Mon Apr 15 12:28:45 CEST 2013


Greetings,

How does the existing filelib:fold_files/5 fail your requirements?


bengt

On Mon, 2013-04-15 at 12:17 +0200, Joe Armstrong wrote:
> Hello,
> 
> 
> Has anybody written a decent "file finder" in Erlang. Something like
> the unix 'find' command.
> 
> 
> I want something that:
> 
> 
>     - traverse the file system recursively
>     - applies a function to any filename that matches a regexp
>     - correctly handles symlinks
>     - should work on all platforms 
> 
> 
> I'd like to follow symlinks, but not when they result in a circular
> path.
> 
> 
> I thought I had one, but it turns out not to correctly handle symlinks
> 
> 
> /Joe
> 
> 
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions




More information about the erlang-questions mailing list