tools/bdconfig/lib/google_hadoop/bdconfig_lib/path_validator.py
def AbsoluteReadablePath(path):
  """Validates that the given path is absolute and is readable."""
  if path is None:
    # Value is allowed to not be set
    return True
  AbsolutePath(path)
  if not os.access(path, os.R_OK):
    raise flags_validators.Error('Cannot read path: ' + path)
  else:
    return True
Validates that the given path is absolute and is readable.
Validates that the given path is absolute and is readable.
Validates that the given path is absolute and is readable .
def AbsoluteReadablePath(path):
  if path is None:
    return True
  AbsolutePath(path)
  if not os.access(path, os.R_OK):
    raise flags_validators.Error('Cannot read path: ' + path)
  else:
    return True
def AbsoluteReadablePath ( path ) : if path is None : return True AbsolutePath ( path ) if not os . access ( path , os . R_OK ) : raise flags_validators . Error ( 'Cannot read path: ' + path ) else : return True
Validates that the given path is absolute and is readable.
Validates that the given path is absolute and is readable .
"""Validates that the given path is absolute and is readable.""" # Value is allowed to not be set
path