tools/clang/scripts/goma_link.py
def ensure_file(path):
  """
  Creates an empty file at path if it does not already exist.
  Also creates directories as needed.
  """
  ensure_dir(os.path.dirname(path))
  try:
    fd = os.open(path, os.O_CREAT | os.O_EXCL | os.O_WRONLY, 0o644)
    os.close(fd)
  except OSError as e:
    if e.errno != errno.EEXIST:
      raise

  Creates an empty file at path if it does not already exist.
  Also creates directories as needed.
  
Creates an empty file at path if it does not already exist.
Also creates directories as needed.
Creates an empty file at path if it does not already exist . Also creates directories as needed .
def ensure_file(path):
  ensure_dir(os.path.dirname(path))
  try:
    fd = os.open(path, os.O_CREAT | os.O_EXCL | os.O_WRONLY, 0o644)
    os.close(fd)
  except OSError as e:
    if e.errno != errno.EEXIST:
      raise
def ensure_file ( path ) : ensure_dir ( os . path . dirname ( path ) ) try : fd = os . open ( path , os . O_CREAT | os . O_EXCL | os . O_WRONLY , 0o644 ) os . close ( fd ) except OSError as e : if e . errno != errno . EEXIST : raise
Creates an empty file at path if it does not already exist.
Creates an empty file at path if it does not already exist .
"""
  Creates an empty file at path if it does not already exist.
  Also creates directories as needed.
  """
path