title: get file list from glob without specifying base directory
body: <p>There are previous questions about checking if a file matches a glob pattern (<a href="https://stackoverflow.com/questions/794381/how-to-find-files-that-match-a-wildcard-string-in-java">here is one</a>). However, I would like to get a list of files that match a glob pattern without having to specify the base directory to search. I need to accept both relative and absolute directories (I resolve the relative ones to a specified directory), and it needs to be cross-platform compatible.</p>
  
  <p>Given a string such as "C:/users/foo/<em>", "/user/foo/</em>.txt" or "dir/*.txt", how do I get the list of matching paths?</p>