Home / lang / mkdir 
MKDIR
Syntax
MKDIR sPath AS String

Creates a directory.

If some parent directory of the specified path does not exist, then the command fails.

Example
MKDIR "/tmp/xxnn"

Errors
MessageDescription
Access forbidden (#43) The parent directory does not allow write permission to the process, or one of the directories in sPath did not allow search permission.
File or directory does not exist (#45) A directory component in sPath does not exist or is a dangling symbolic link.
Not a directory (#49) A component used as a directory in sPath is not, in fact, a directory.
Out of memory (#1) Insufficient kernel memory was available.
File name is too long (#44) sPath was too long.
Device is full (#37) The device containing sPath has no room for the new directory.
File already exists (#38) sPath already exists (not necessarily as a directory). This includes the case where sPath is a symbolic link, dangling or not.
System error... (#42) Other possible system errors:
  • Too many symbolic links were encountered in resolving sPath.
  • The filesystem containing pathname does not support the creation of directories.
  • sPath refers to a file on a read-only filesystem.


See also
File & Directory Functions