title: How do you move tree with ignore patterns in python
body: <p>with the shutil.copytree I can copy an entire directory with files and folders into a folder within itself and at the same time ignore certain folders and there content.</p>
  
  <pre><code>source = htpc.root
  destination = os.path.join(htpc.root, "old")
  
  shutil.copytree(source, destination, ignore=shutil.ignore_patterns('userdata', 'old'))
  </code></pre>
  
  <p>Is there a way to do this exact same thing except move and not copy so I'll only be left userdata and old in the root directory with all the old files and folders within old. Any assistance would be great. Thanks</p>