aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/file_server.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2013-02-11 15:07:05 +0100
committerBjörn Gustavsson <[email protected]>2013-02-11 15:10:46 +0100
commit08bc8a328275e751836fab0c562b50cf71000c2b (patch)
treece9525ba3b282a1e72cab3bf741f0c9962f4923f /lib/kernel/src/file_server.erl
parent6d516de001dde82c02fe050db8e3aab47914fa90 (diff)
downloadotp-08bc8a328275e751836fab0c562b50cf71000c2b.tar.gz
otp-08bc8a328275e751836fab0c562b50cf71000c2b.tar.bz2
otp-08bc8a328275e751836fab0c562b50cf71000c2b.zip
Add file:list_dir_all/1 and file:read_link_all/1
Diffstat (limited to 'lib/kernel/src/file_server.erl')
-rw-r--r--lib/kernel/src/file_server.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/kernel/src/file_server.erl b/lib/kernel/src/file_server.erl
index fc6cd823c9..73202319b9 100644
--- a/lib/kernel/src/file_server.erl
+++ b/lib/kernel/src/file_server.erl
@@ -136,6 +136,8 @@ handle_call({del_dir, Name}, _From, Handle) ->
handle_call({list_dir, Name}, _From, Handle) ->
{reply, ?PRIM_FILE:list_dir(Handle, Name), Handle};
+handle_call({list_dir_all, Name}, _From, Handle) ->
+ {reply, ?PRIM_FILE:list_dir_all(Handle, Name), Handle};
handle_call(get_cwd, _From, Handle) ->
{reply, ?PRIM_FILE:get_cwd(Handle), Handle};
@@ -167,6 +169,8 @@ handle_call({read_link_info, Name, Opts}, _From, Handle) ->
handle_call({read_link, Name}, _From, Handle) ->
{reply, ?PRIM_FILE:read_link(Handle, Name), Handle};
+handle_call({read_link_all, Name}, _From, Handle) ->
+ {reply, ?PRIM_FILE:read_link(Handle, Name), Handle};
handle_call({make_link, Old, New}, _From, Handle) ->
{reply, ?PRIM_FILE:make_link(Handle, Old, New), Handle};