| mkdir |
(String path) |
yoix.system |
| |
Creates a new directory named
path,
assuming all parent directories in
path
already exist, and returns
0
on success or
-1
if there was an error.
| |
| Example: |
On a UNIX-like system the program,
import yoix.stdio.*;
import yoix.system.*;
if (mkdir("/tmp/XXX") == 0) {
puts("created /tmp/XXX");
if (mkdir("/tmp/XXX/a/b/c") == 0)
puts("created /tmp/XXX/a/b/c");
else puts("could not create /tmp/XXX/a/b/c");
} else puts("could not create /tmp/XXX");
usually prints
created /tmp/XXX
could not create /tmp/XXX/a/b/c
on standard output.
| | |
| Return: |
int
| | |
| See Also: |
access,
directoryListing,
fileModified,
fileSize,
fopen,
isDirectoryPath,
isFilePath,
localPath,
mkdirs,
open,
realPath,
rename,
rmdir,
stat,
unlink,
yoixPath
|
|
Yoix is a registered trademark of AT&T Inc.
|