title: How to move file/files from one folder to another in Scala
body: <p>I am new to Scala.</p>
  <p>I've Googled a lot on how to move files in Scala, but have only found how to move files in Java. I tried to move files using Java <code>import Java.io.File</code>, using both:</p>
  <pre><code>Files.move(&quot;FileA&quot;, &quot;FileB&quot;, StandardCopyOption.REPLACE_EXISTING);
  Files.move(&quot;DirA&quot;, &quot;DirB&quot;, StandardCopyOption.ATOMIC_MOVE); 
  </code></pre>
  <p>but it didn't work. My code looks like this:</p>
  <pre><code>Files.move(&quot;/public&quot;, &quot;/public/images&quot;, StandardCopyOption.ATOMIC_MOVE);
  </code></pre>
  <p>I want to move files from <code>public</code> to <code>public/images</code>.</p>