diff options
author | Björn Gustavsson <[email protected]> | 2013-05-22 11:39:13 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2013-05-22 11:54:37 +0200 |
commit | 67d83e15fdee068217df7f14a32fb901d7d4d91b (patch) | |
tree | 081b55a57e9d41494694e2b74eda30d6a2d57a05 /bootstrap/lib | |
parent | 2886d9937990c3465671b59d744f6bacd43545c8 (diff) | |
download | otp-67d83e15fdee068217df7f14a32fb901d7d4d91b.tar.gz otp-67d83e15fdee068217df7f14a32fb901d7d4d91b.tar.bz2 otp-67d83e15fdee068217df7f14a32fb901d7d4d91b.zip |
Teach c:ls/1 to show non-directory files
In an email to erlang-questions, Bengt Kleberg wrote:
When I use c:ls/1 it reminds me so much of Unix "ls" that I
expect c:ls("filename") to work. The resulting error surprises
me every time (not the same day).
While teaching c:ls/1 to show non-directory files, update the
error handling to make use of the POSIX error codes from
file:list_dir/1 and file:format_error/1 (which had not been
invented when the c module was first implemented).
Suggested-by: Bengt Kleberg
Test-suite-by: Bengt Kleberg
Diffstat (limited to 'bootstrap/lib')
0 files changed, 0 insertions, 0 deletions