[erlang-patches] Correct ls/1 in c.erl

Anthony Ramine n.oxyde@REDACTED
Tue May 14 11:27:52 CEST 2013


Hello Björn,

The whole point of his patch is to make c:ls/1 able to list files as well as directories, like what ls(1) does on the command line, so I don't think he should use filelib:is_regular/1 here.

Regards,

-- 
Anthony Ramine

Le 14 mai 2013 à 10:46, Björn Gustavsson a écrit :

> Second, filelib:is_file/1 returns true for both files and directories.
> You probably want to use filelib:is_regular/1.




More information about the erlang-patches mailing list