Macaulay2 » Documentation
Packages » Macaulay2Doc > The Macaulay2 language > file manipulation > isDirectory
next | previous | forward | backward | up | index | toc

isDirectory -- whether a file is a directory

Synopsis

Description

i1 : isDirectory "."

o1 = true
i2 : fn = temporaryFileName()

o2 = /tmp/M2-770500-0/0
i3 : fn << "hi there" << close

o3 = /tmp/M2-770500-0/0

o3 : File
i4 : isDirectory fn

o4 = false
i5 : removeFile fn

See also

For the programmer

The object isDirectory is a compiled function.