next | previous | forward | backward | up | top | index | toc | home
Macaulay2 > The Macaulay2 language > file manipulation > isRegularFile

isRegularFile -- whether a file is a regular file

Synopsis

Description

In UNIX, a regular file is one which is not special in some way. Special files include symbolic links and directories. A regular file is a sequence of bytes stored permanently in a file system.
i1 : fn = temporaryFileName()

o1 = /tmp/M2-29736-1
i2 : fn << "hi there" << close

o2 = /tmp/M2-29736-1

o2 : File
i3 : isRegularFile fn

o3 = true
i4 : removeFile fn

See also