make-directory ( path -- ) (original) (raw)
make-directory ( path -- )
Factor handbook » Input and output » Directory manipulation » Creating directories
Next: | make-directories ( path -- ) |
---|
Vocabulary
io.directories
Inputs
path | a pathname string |
---|
Outputs
None
Word description
Creates a directory.
Errors
Throws an error if the directory could not be created.
Definition
HOOK: make-directory io-backend ( path -- )
Methods
USING: io.backend io.directories io.directories.unix kernel
system unix unix.ffi ;
M: unix make-directory
normalize-path mkdir-mode [ mkdir ] unix-system-call drop ;