aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src/filelib.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2014-04-07 13:06:11 +0200
committerBjörn Gustavsson <[email protected]>2014-04-10 12:26:05 +0200
commitf11aabdc9fec593c31e6c4f3fa25c1707e9c35df (patch)
tree790c613d8f8070a0eea860cb33b4805c49059053 /lib/stdlib/src/filelib.erl
parent07b8f441ca711f9812fad9e9115bab3c3aa92f79 (diff)
downloadotp-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/filelib.erl')
-rw-r--r--lib/stdlib/src/filelib.erl2
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};