tools/bdconfig/lib/google_hadoop/bdconfig_lib/path_validator.py
def AbsoluteFilePath(path):
  """Validates that the given path is absolute and points to a file."""
  if path is None:
    # Value is allowed to not be set
    return True
  AbsoluteReadablePath(path)
  if os.path.isdir(path):
    raise flags_validators.Error(
        'Path must point to an existing file: ' + path)
  else:
    return True
Validates that the given path is absolute and points to a file.
Validates that the given path is absolute and points to a file.
Validates that the given path is absolute and points to a file .
def AbsoluteFilePath(path):
  if path is None:
    return True
  AbsoluteReadablePath(path)
  if os.path.isdir(path):
    raise flags_validators.Error(
        'Path must point to an existing file: ' + path)
  else:
    return True
def AbsoluteFilePath ( path ) : if path is None : return True AbsoluteReadablePath ( path ) if os . path . isdir ( path ) : raise flags_validators . Error ( 'Path must point to an existing file: ' + path ) else : return True
Validates that the given path is absolute and points to a file.
Validates that the given path is absolute and points to a file .
"""Validates that the given path is absolute and points to a file.""" # Value is allowed to not be set
path