diff options
author | John Högberg <[email protected]> | 2019-05-23 11:45:59 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2019-05-23 11:45:59 +0200 |
commit | 59a813cb8d9f687b612782be0103643837b2de8e (patch) | |
tree | c125908639d528def3eef843cb90fe4f9a5027bd /lib/kernel/doc | |
parent | 242c3a7b2a51a4f95dbee3257f3a2f9130a1720e (diff) | |
parent | bd3f4f05bb6dafdedbae5671ee50c769a3560021 (diff) | |
download | otp-59a813cb8d9f687b612782be0103643837b2de8e.tar.gz otp-59a813cb8d9f687b612782be0103643837b2de8e.tar.bz2 otp-59a813cb8d9f687b612782be0103643837b2de8e.zip |
Merge pull request #2212 from andrenth/file-open-directories
file: allow open/2 to work on directories
OTP-15835
Diffstat (limited to 'lib/kernel/doc')
-rw-r--r-- | lib/kernel/doc/src/file.xml | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/kernel/doc/src/file.xml b/lib/kernel/doc/src/file.xml index fc25e83d40..b3e8149cc2 100644 --- a/lib/kernel/doc/src/file.xml +++ b/lib/kernel/doc/src/file.xml @@ -939,6 +939,10 @@ f.txt: {person, "kalle", 25}. support for POSIX <c>O_SYNC</c> or equivalent, use of the <c>sync</c> flag causes <c>open</c> to return <c>{error, enotsup}</c>.</p> </item> + <tag><c>directory</c></tag> + <item> + <p>Allows <c>open</c> to work on directories.</p> + </item> </taglist> <p>Returns:</p> <taglist> @@ -985,8 +989,10 @@ f.txt: {person, "kalle", 25}. </item> <tag><c>enotdir</c></tag> <item> - <p>A component of the filename is not a directory. On some - platforms, <c>enoent</c> is returned instead.</p> + <p>A component of the filename is not a directory, or the + filename itself is not a directory if <c>directory</c> + mode was specified. On some platforms, <c>enoent</c> is + returned instead.</p> </item> <tag><c>enospc</c></tag> <item> |