Creates a directory at the path identified by dir.
if dir's parent does not exist, is not a directory, or cannot be written. A directory cannot be created if the current process doesn't have access, if there's a loop of symbolic links, or if any name is too long.