title: How to rename the folder in java
body: <p>My folder structure looks like</p>
  
  <pre><code>D:
  |- Folder1
     |- File1
  |- Folder2
     |- File2 
  </code></pre>
  
  <p>output:</p>
  
  <pre><code>D:
  |- Directory1   &lt;- renamed
     |- File1 
  |- Directory2   &lt;- renamed
     |- File2 
  </code></pre>
  
  <p>The question is how to rename the folders one level down?</p>