diff options
author | Björn Gustavsson <[email protected]> | 2013-02-15 13:11:22 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2013-02-18 13:57:39 +0100 |
commit | 1f9b77e63268374339c23288bc71246d6f494f20 (patch) | |
tree | 265c83f5bc80276d724f3c6e00645f771fb39073 /erts/preloaded/src | |
parent | 2f4ed0cac2707921b6f5b9cc2ad8192502733913 (diff) | |
download | otp-1f9b77e63268374339c23288bc71246d6f494f20.tar.gz otp-1f9b77e63268374339c23288bc71246d6f494f20.tar.bz2 otp-1f9b77e63268374339c23288bc71246d6f494f20.zip |
Fix broken prim_file:list_dir_all/1
6d516de001dde82c02fe050db8e3aab47914fa90 added prim_file:list_dir_all/1.
Unfortunately, only the first element in the list would be handled
as intended.
Diffstat (limited to 'erts/preloaded/src')
-rw-r--r-- | erts/preloaded/src/prim_file.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/preloaded/src/prim_file.erl b/erts/preloaded/src/prim_file.erl index bf8879c2a0..b40a6d9633 100644 --- a/erts/preloaded/src/prim_file.erl +++ b/erts/preloaded/src/prim_file.erl @@ -990,9 +990,9 @@ list_dir_convert_all([Name|Names]) -> %% a binary. case prim_file:internal_native2name(Name) of {error, _} -> - [Name|list_dir_convert(Names)]; + [Name|list_dir_convert_all(Names)]; Converted when is_list(Converted) -> - [Converted|list_dir_convert(Names)] + [Converted|list_dir_convert_all(Names)] end; list_dir_convert_all([]) -> []. |