Re: Correct ls/1 in c.erl

Anthony Ramine <[email protected]>
Newsgroups gmane.comp.lang.erlang.patches
Message-ID <[email protected]>
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.

_______________________________________________
erlang-patches mailing list
[email protected]
http://erlang.org/mailman/listinfo/erlang-patches
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.