Docs » Autodocs » dos.library » CreateDir
CreateDir -- Create a new directory
lock = CreateDir( name ) D0 D1 BPTR CreateDir(STRPTR)
CreateDir creates a new directory with the specified name. An error is returned if it fails. Directories can only be created on devices which support them, e.g. disks. CreateDir returns an exclusive lock on the new directory if it succeeds.
name - pointer to a null-terminated string
lock - BCPL pointer to a lock or NULL for failure.
Lock(), UnLock()
|