isdir - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : System : External Functions : isdir

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

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam