- def __dir_walker(self, dict, root, dirs, files):
-
- ## Get all of the files in the directory that are of the correct types
- types_re = re.compile(TYPES_REGEX, re.IGNORECASE)
- raw_matches = [f for f in files if types_re.match(f)]
-
- ### Loop through the dictionary and try to move everything that matches
- for regex, todir in dict:
- matches = self.get_matches(raw_matches, regex)