lq-text: LQU_IsFile

API int LQU_IsFile (Path) CONST char *Path;

Purpose

Determines whether the given Path refers to a regular file. Devices (such as /dev/null or a terminal), and directories in particular are not regular files. The Unix command

find filename -type f -print

will print out filename if and only if LQU_IsĀ­File would return 1 for the same filename.

Returns

Notes

There is tracing in here so that you can see which files are being investigated by the calling program; tracing is available if the liblqutil library was compiled with -DASCIITRACE; if so, you can set the FindFile trace flag (LQTRACE_FINDFILE) to see tracing for this routine. The -t "FindFile|Verbose" command-line option will do this.

On systems that have the trace, strace or truss utility, investigate using that instead.