AT&T Home | AT&T Labs | Research
AT&T Labs, Inc. - Research

The Yoix® Scripting Language

Home | What's New | Grammar | Documentation | Download | License | YChart | YDAT | YWAIT | Byzgraf | FAQs
rmdir (String path) yoix.system
 
Removes the directory named path, if it exists and is empty, 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.*;

mkdirs("/tmp/XXX/a");
if (rmdir("/tmp/XXX") == 0)
    puts("removed /tmp/XXX");
else puts("could not remove /tmp/XXX");

if (rmdir("/tmp/XXX/a") == 0)
    puts("removed /tmp/XXX/a");
else puts("could not remove /tmp/XXX/a");
usually prints
could not remove /tmp/XXX
removed /tmp/XXX/a
on standard output.
 
 Return:   int
 
 See Also:   access, directoryListing, fileModified, fileSize, fopen, isDirectoryPath, isFilePath, localPath, mkdir, mkdirs, open, realPath, rename, stat, unlink, yoixPath

 

Yoix is a registered trademark of AT&T Inc.