\file_if_exist:nTF searches the TeX/LaTeX input path for the filename given as an argument. Now I am looking for a way to get hands on the complete path to the file, in case it was found. From the LaTeX2e command
\IfFileExists I know that it stores the path to the file in the macro
\@filef@und. I wonder if there is a LaTeX3 counterpart to
\@filef@und. If not, I kindly ask the LaTeX3 developers to provide a such, because it may come in handy in certain programming tasks.
I have just added to the development version of
which will result in the (storage macro) containing either:
I've also adjusted the other file code to make use of this. The idea is that you can save doing the file test if you know you'll need to use the path, by doing
but unlike LaTeX2e this is documented and therefore officially-supported.
This will go to CTAN with the next update: let me know if this is urgent (I do the releases 'from time to time').