code: def check_directory_paths(self, *args):
          
          for path in enumerate(args):
              path = path[1]
              if path is not None:
                  try:
                      self.check_directory_path(path)
                  except OSError as ex:
                      logger.warn(ex)
                      raise
          return args
docs: Ensure all arguments correspond to directories