def _VerifyRestrictedCmdDirectory(path, _owner=None):
  (status, value) = _CommonRestrictedCmdCheck(path, _owner)

  if not status:
    return (False, value)

  if not stat.S_ISDIR(value.st_mode):
    return (False, "Path '%s' is not a directory" % path)

  return (True, None)
Unset header by name and value.
dataset/ETHPy150Open ganeti/ganeti/lib/backend.py/_VerifyRestrictedCmdDirectory--crossover with--dataset/ETHPy150Open michaelliao/transwarp/transwarp/web.py/Response.unset_header