filepath_valid
int filepath_valid(struct filepath_tree *, char *, int);
if (filepath_valid(&fpt, file, talid)) {