function tt_file()

tt_file receives a fullpath of a file or a directory and returns .t. (true) if this file or directory exists, .f. (false) if not. The reaction on hidden files, system files and files without these flags is the same.

FoxPro has a function file() also telling you whether a file exists or not. If you use this function please check on the second parameter. tt_file was created after investigating into a positive file() result on a file which was not at the given path but existed in the project. I tried to reproduce this by a little program but did not succeed in the environment of the Tool&Task examples.

tt_file uses C-functions and does not see files included in tt.exe.


1. Fullpath to file or directory