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

isRegularFile -- whether a file is a regular file



In UNIX, a regular file is one that 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-63460-0/0
i2 : fn << "hi there" << close

o2 = /tmp/M2-63460-0/0

o2 : File
i3 : isRegularFile fn

o3 = true
i4 : removeFile fn

See also

For the programmer

The object isRegularFile is a compiled function.