Finding full path of file
I'll keep this short and sweet: Given a fragment of the beginning of a full file path, and a fragment of the ending of a full file path, is there an easy way to get the full file path (ie: find the file)?
For example, let's say we have a full file with the path: C:\User\foo\fod\tee\few\file.txt
Can I easily find the full path?
My fall-back plan is recursion, but if Java already has some obscure built-in way to do this, it would save me some trouble. The only reason I am asking is because I just stumbled upon java's nio package, which seems like if the functionality already exists, it would be hidden somewhere in there.
EDIT: for reference: http://docs.oracle.com/javase/7/docs...e-summary.html
Re: Finding full path of file
There can be many paths that have have the same starting and ending parts. The search method would have to return a list.