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

isDirectory -- whether a file is a directory

Description

i1 : isDirectory "."

o1 = true
i2 : fn = temporaryFileName()

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

o3 = /tmp/M2-29382-0/0

o3 : File
i4 : isDirectory fn

o4 = false
i5 : removeFile fn

See also

For the programmer

The object isDirectory is a compiled function.


The source of this document is in Macaulay2Doc/functions/isDirectory-doc.m2:20:0.