Function S_ISREG (m:integer) : boolean;
S_ISREG checks the file mode m to see whether the file is a regular file. If so it returns True
FStat, S_ISLNK, S_ISDIR, S_ISCHR, S_ISBLK, S_ISFIFO, S_ISSOCK
For an example, see ISLNK.