Remove `exists` function
dafky2000 opened this issue · comments
As per @andy5995's comment, we should be able to do without the exists
function
82ab97f#commitcomment-25148134
simplectemplate/src/template_functions.c
Line 28 in 82ab97f
I was thinking... you may want to consider checking for file existence with fopen(), unless there's a good reason not to. More minimal... I don't remember exactly, but I think the only reason I went with lstat() is because I originally used it in code where I was checking for directories, as well as files. I don't think you can use fopen() to accurately check if a directory exists. Since it's not a regular file, it always returns an error... I forget some specifics, so don't quote me on that!