diff options
author | Björn Gustavsson <[email protected]> | 2014-04-07 13:06:11 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2014-04-10 12:26:05 +0200 |
commit | f11aabdc9fec593c31e6c4f3fa25c1707e9c35df (patch) | |
tree | 790c613d8f8070a0eea860cb33b4805c49059053 /lib/stdlib/src | |
parent | 07b8f441ca711f9812fad9e9115bab3c3aa92f79 (diff) | |
download | otp-f11aabdc9fec593c31e6c4f3fa25c1707e9c35df.tar.gz otp-f11aabdc9fec593c31e6c4f3fa25c1707e9c35df.tar.bz2 otp-f11aabdc9fec593c31e6c4f3fa25c1707e9c35df.zip |
filelib:wildcard() should show broken symlinks
filelib:wildcard("broken_symlink") would return an empty list if
"broken_symlink" is a symlink that does not point to an existing
file.
Diffstat (limited to 'lib/stdlib/src')
-rw-r--r-- | lib/stdlib/src/filelib.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stdlib/src/filelib.erl b/lib/stdlib/src/filelib.erl index a266daa084..c0921e4cf1 100644 --- a/lib/stdlib/src/filelib.erl +++ b/lib/stdlib/src/filelib.erl @@ -488,7 +488,7 @@ badpattern(Reason) -> error({badpattern,Reason}). eval_read_file_info(File, file) -> - file:read_file_info(File); + file:read_link_info(File); eval_read_file_info(File, erl_prim_loader) -> case erl_prim_loader:read_file_info(File) of error -> {error, erl_prim_loader}; |