File.mkdir
You're seeing just the function
mkdir
, go back to File module for more information.
Specs
Tries to create the directory path
.
Missing parent directories are not created.
Returns :ok
if successful, or {:error, reason}
if an error occurs.
Typical error reasons are:
:eacces
- missing search or write permissions for the parent directories ofpath
:eexist
- there is already a file or directory namedpath
:enoent
- a component ofpath
does not exist:enospc
- there is no space left on the device:enotdir
- a component ofpath
is not a directory; on some platforms,:enoent
is returned instead