How to get files from a project folder
<p>The folder is <code>/src/img</code>. I need to get all file names(<code>png</code> files) from <code>img</code> folder and all subfolders.I dont know the full path to the folder so i need only to focus the project resourse. I need them in array. Using Java8 and Eclipse Mars.
So far this works:</p>

<pre><code>try {


Files.walk(Paths.get("/home/fixxxer/NetBeansProjects/Installer/src/img/")).forEach(filePath -&gt; {
            if (Files.isRegularFile(filePath)) {
                System.out.println(filePath);
            }
        });
    } catch (IOException ex) {
        Logger.getLogger(InstallFrame.class.getName()).log(Level.SEVERE, null, ex);
    }
</code></pre>

<p>The problem is that the folder need to be called like this:
<code>/img</code> cause it is inside the project
Thanks in advance :) </p>