isdir - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

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