From 9dd60c47d4e91f39933edc97840bbd68f10c55d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= Date: Wed, 13 Feb 2013 14:29:14 +0100 Subject: file: Document list_dir_all/1 and read_link_all/1 --- lib/kernel/doc/src/file.xml | 59 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 58 insertions(+), 1 deletion(-) (limited to 'lib/kernel/doc/src') diff --git a/lib/kernel/doc/src/file.xml b/lib/kernel/doc/src/file.xml index 4851a53dd9..22a04c6c13 100644 --- a/lib/kernel/doc/src/file.xml +++ b/lib/kernel/doc/src/file.xml @@ -496,7 +496,8 @@ List files in a directory -

Lists all the files in a directory. Returns +

Lists all files in a directory, except files + with "raw" names. Returns {ok, Filenames} if successful. Otherwise, it returns {error, Reason}. Filenames is a list of @@ -516,6 +517,31 @@ + + + List all files in a directory + +

Lists all the files in a directory, including files with + "raw" names. + Returns {ok, Filenames} if successful. + Otherwise, it returns {error, Reason}. + Filenames is a list of + the names of all the files in the directory. The names are + not sorted.

+

Typical error reasons are:

+ + eacces + +

Missing search or write permissions for Dir + or one of its parent directories.

+
+ enoent + +

The directory does not exist.

+
+
+
+ Make a directory @@ -1399,12 +1425,43 @@ See what a link is pointing to + +

This function returns {ok, Filename} if + Name refers to a symbolic link that is + not a "raw" file name, or {error, Reason} + otherwise. + On platforms that do not support symbolic links, the return + value will be {error,enotsup}.

+

Typical error reasons:

+ + einval + +

Name does not refer to a symbolic link + or the name of the file that it refers to does not conform + to the expected encoding.

+
+ enoent + +

The file does not exist.

+
+ enotsup + +

Symbolic links are not supported on this platform.

+
+
+
+
+ + + See what a link is pointing to

This function returns {ok, Filename} if Name refers to a symbolic link or {error, Reason} otherwise. On platforms that do not support symbolic links, the return value will be {error,enotsup}.

+

Note that Filename can be either a list + or a binary.

Typical error reasons:

einval -- cgit v1.2.3