def _CheckFileStoragePathExistance(path):
  if not os.path.isdir(path):
    raise errors.FileStoragePathError("Path '%s' does not exist or is not a"
                                      " directory." % path)
  if not os.access(path, os.W_OK):
    raise errors.FileStoragePathError("Path '%s' is not writable" % path)
Returns the dict for the user specified as the admin in the request
dataset/ETHPy150Open ganeti/ganeti/lib/storage/filestorage.py/_CheckFileStoragePathExistance--crossover with--dataset/ETHPy150Open openstack/swauth/swauth/middleware.py/Swauth.get_admin_detail