isdir - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


isdir

tests if a file is a directory

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

isdir(filename)

Parameters

filename

-

name of the file to be checked

Description

• 

If filename is a directory, isdir returns true. If it is not a directory, isdir returns false.

• 

If filename does not exist, isdir generates an error.

• 

See file for information on file names.

Examples

isdir/home/maple

true

(1)

isdir/home/maple/m/foo.m

false

(2)

isdir/home/maple/noexist

Error, (in isdir) file or directory does not exist

See Also

file

FileTools[IsDirectory]

fopen

IO_errors

listdir

open