File.mkdir_p
You're seeing just the function
mkdir_p
, go back to File module for more information.
Specs
Tries to create the directory path
.
Missing parent directories are 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
:enospc
- there is no space left on the device:enotdir
- a component ofpath
is not a directory