code: def copy_file(self, path):
          
          if "*" in path:
              paths = _expand_paths(path)
              if paths:
                  for path in paths:
                      self._copy_file(path)
          else:
              if os.path.isfile(path):
                  return self._copy_file(path)
              else:
                  logger.debug("File %s does not exist", path)
                  return False
docs: Copy a single file or regex, creating the necessary directories