title: List files from directories and sub directories in java including only partial file paths
body: <p>I need to get the paths of files and their parent directories in java from a given directory but not including it. </p>
  
  <p>So for example, If my method was given the path: <code>/home/user/test</code> as a path it would return the paths of all files in that directory and under it.</p>
  
  <p>So if <code>/home/user/test</code> had the sub folders: <code>/subdir1</code> and <code>/subdir2</code> each containing <code>file1.txt</code> and <code>file2.txt</code> then the result of the method would be 2 strings containing <code>/subdir1/file1.txt</code> and <code>/subdir2/file2.txt</code></p>
  
  <p>And if <code>subdir1</code> had a directory inside it called <code>subsubdir</code> and inside that <code>file3.txt</code>, then the string created for that file would be <code>/subdir1/subsubdir/file3.txt</code>, and if there are further sub directories that would continue. </p>
  
  <p>The idea is I just want the directory paths above the file but not the absolute path so only the directories AFTER the initial given path.</p>
  
  <p>I know its a little confusing but I'm sure someone can make sense of it. Right now all I have is a recursive function that prints out file names and their absolute paths. </p>
  
  <p>Any assistance on this?</p>