Search file name under root url instead of file system
<p>I have the following code which searches file name under filesystem</p>

<pre><code> private String getFile(final String myId) {

    File folder = new File(System.getenv("MY_DIR"));

    return folder.listFiles(new FilenameFilter(){
        public boolean accept(File dir, String name){
            return name.startsWith(myId);
        }
    })[0].getName();
}
</code></pre>

<p>How do i modify to look under <a href="http://server.com/mydir" rel="nofollow">http://server.com/mydir</a> instead of /home/jay/mydir which is MY_DIR currently?</p>
