Import a file that could be in one of three directories
I want to import a file called image.png. I know it is either in dir1, dir2 or dir3
On unix I can easily open it using a Kleene star.
xdg-open ~/dirA/*/image.png On mathematica I tried to add a Kleene star to the Import argument string.
Import[$HomeDirectory <> "/dirA/*/image.png"] But this does not work.
Question:
How to import a file that is in $1$ of $n$ directories?

FileNames["image.png", {$HomeDirectory}, Infinity]$\endgroup$