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

isRegularFile -- whether a file is a regular file

Synopsis

Description

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-774053-0/0
i2 : fn << "hi there" << close

o2 = /tmp/M2-774053-0/0

o2 : File
i3 : isRegularFile fn

o3 = true
i4 : removeFile fn

See also

For the programmer

The object isRegularFile is a compiled function.