title: rename folder into sub-folder with PHP
body: <p>I'm trying to move a folder by renaming it. Both the test1 and test2 folders already exist. </p>
  
  <pre><code>rename(
   "test1",
   "test2/xxx1/xxx2"
  );
  </code></pre>
  
  <p>The error I get is: <em>rename(...): No such file or directory</em></p>
  
  <p>I assume this is because the directory "xxx1" does not exist.
  How can I move the test1 directory anyway?</p>