@@ -280,13 +280,13 @@ defmodule File do
280
280
281
281
Typical error reasons are:
282
282
283
- * :eacces - Missing search or write permissions for the parent directories
284
- of `path`.
285
- * :eexist - There is already a file or directory named `path`.
286
- * :enoent - A component of `path` does not exist.
287
- * :enospc - There is a no space left on the device.
288
- * :enotdir - A component of `path` is not a directory.
289
- On some platforms, `:enoent` is returned instead.
283
+ * ` :eacces` - Missing search or write permissions for the parent directories
284
+ of `path`.
285
+ * ` :eexist` - There is already a file or directory named `path`.
286
+ * ` :enoent` - A component of `path` does not exist.
287
+ * ` :enospc` - There is a no space left on the device.
288
+ * ` :enotdir` - A component of `path` is not a directory.
289
+ On some platforms, `:enoent` is returned instead.
290
290
"""
291
291
@ spec mkdir ( Path . t ) :: :ok | { :error , posix }
292
292
def mkdir ( path ) do
@@ -312,10 +312,10 @@ defmodule File do
312
312
313
313
Typical error reasons are:
314
314
315
- * :eacces - Missing search or write permissions for the parent directories
316
- of `path`.
317
- * :enospc - There is a no space left on the device.
318
- * :enotdir - A component of `path` is not a directory.
315
+ * ` :eacces` - Missing search or write permissions for the parent directories
316
+ of `path`.
317
+ * ` :enospc` - There is a no space left on the device.
318
+ * ` :enotdir` - A component of `path` is not a directory.
319
319
"""
320
320
@ spec mkdir_p ( Path . t ) :: :ok | { :error , posix }
321
321
def mkdir_p ( path ) do
@@ -341,13 +341,13 @@ defmodule File do
341
341
342
342
Typical error reasons:
343
343
344
- * :enoent - The file does not exist.
345
- * :eacces - Missing permission for reading the file,
346
- or for searching one of the parent directories.
347
- * :eisdir - The named file is a directory.
348
- * :enotdir - A component of the file name is not a directory.
349
- On some platforms, `:enoent` is returned instead.
350
- * :enomem - There is not enough memory for the contents of the file.
344
+ * ` :enoent` - The file does not exist.
345
+ * ` :eacces` - Missing permission for reading the file,
346
+ or for searching one of the parent directories.
347
+ * ` :eisdir` - The named file is a directory.
348
+ * ` :enotdir` - A component of the file name is not a directory.
349
+ On some platforms, `:enoent` is returned instead.
350
+ * ` :enomem` - There is not enough memory for the contents of the file.
351
351
352
352
You can use `:file.format_error/1` to get a descriptive string of the error.
353
353
"""
@@ -728,13 +728,13 @@ defmodule File do
728
728
729
729
Typical error reasons are:
730
730
731
- * :enoent - A component of the file name does not exist.
732
- * :enotdir - A component of the file name is not a directory.
733
- On some platforms, enoent is returned instead.
734
- * :enospc - There is a no space left on the device.
735
- * :eacces - Missing permission for writing the file or searching one of the
736
- parent directories.
737
- * :eisdir - The named file is a directory.
731
+ * ` :enoent` - A component of the file name does not exist.
732
+ * ` :enotdir` - A component of the file name is not a directory.
733
+ On some platforms, enoent is returned instead.
734
+ * ` :enospc` - There is a no space left on the device.
735
+ * ` :eacces` - Missing permission for writing the file or searching one of the
736
+ parent directories.
737
+ * ` :eisdir` - The named file is a directory.
738
738
739
739
The writing is automatically done in `:raw` mode. Check
740
740
`File.open/2` for other available options.
@@ -765,12 +765,12 @@ defmodule File do
765
765
766
766
Typical error reasons are:
767
767
768
- * :enoent - The file does not exist.
769
- * :eacces - Missing permission for the file or one of its parents.
770
- * :eperm - The file is a directory and user is not super-user.
771
- * :enotdir - A component of the file name is not a directory.
772
- On some platforms, enoent is returned instead.
773
- * :einval - Filename had an improper type, such as tuple.
768
+ * ` :enoent` - The file does not exist.
769
+ * ` :eacces` - Missing permission for the file or one of its parents.
770
+ * ` :eperm` - The file is a directory and user is not super-user.
771
+ * ` :enotdir` - A component of the file name is not a directory.
772
+ On some platforms, enoent is returned instead.
773
+ * ` :einval` - Filename had an improper type, such as tuple.
774
774
775
775
## Examples
776
776
0 commit comments