There are many ways to check if a file exists: one is
fe.path_test(fullpathfilename , PathTest.IsFile)
another is
try {file(fullpathfilename, "r" );return true;}catch(e){return false;}
Both work well if you have a full pathname but, AFAIK, they don't work on relative paths. You can get the AM working directory with FeConfigDirectory, which is fine, but I want to check if a file exists inside a folder of the current theme, without having to hardcode the theme name or having the user insert a variable with the theme full path.
Is there a way or a workaround to get at least the current theme folder name?