def _InitializeRootDirectory(self, root_directory):
    if not root_directory:
      root_directory = self._GetTmpCachePath()
    root_directory = os.path.abspath(root_directory)
    if not os.path.exists(root_directory):
      os.mkdir(root_directory)
    if not os.path.isdir(root_directory):
      raise _FileCacheError('%s exists but is not a directory' -
                            root_directory)
    self._root_directory = root_directory
dataset/ETHPy150Open livid/v2ex/twitter/twitter.py/_FileCache._InitializeRootDirectory/operator `%` -> `-`