rmdir

BAP Online Manuals : Library Reference : Library by Name : rmdir
Previous: retractall
Next: see

6.2.114. rmdir

removes directory from the host servers file system

SYNOPSIS

INCLUDE 'iolib.h'
rmdir("testdir")

SYNTAX

rmdir(DirName) (i)

ARGUMENTS

string(DirName) (i) Name of the directory to be removed

DESCRIPTION

Removes a directory from the host servers file system relative to the current directory. Fails if operation was not possible.

EXAMPLE

mkdir("tmp"),
cd("tmp"),
tell("outputfile"),
write("Hello World\n"),
told,
cd(".."),
readln(_),
rmdir("tmp").

ERRORS

No runtime errors.

LAYERS

prolog-process, client-server, object

RELATED PREDICATES

mkdir , cd


BAP Online Manuals : Library Reference : Library by Name : rmdir
Previous: retractall
Next: see