-Python- Move All PDF Files in Folder to NewDirectory Based on Matching Names, Using Glob or Shutil
问题 I'm trying to write code that will move hundreds of PDF files from a :/Scans folder into another directory based on the matching each client's name. I'm not sure if I should be using Glob, or Shutil, or a combination of both. My working theory is that Glob should work for such a program, as the glob module "finds all the pathnames matching a specified pattern," and then use Shutil to physically move the files? Here is a breakdown of my file folders to give you a better idea of what I'm trying