Next: , Up: File System Functions


11.3.1 make-directory-maybe

— function: make-directory-maybe dir

Where dir is a string

make a directory dir (if it doesn't exist) and return error code

If it can be created, create the directory dir, return the success status like mkdir: mkdir

Returns: zero on success, or -1 if an error occurred. If dir already exists as a directory, return 0 of course.