tools/python/google/path_utils.py
def MaybeMakeDirectory(*path):
  """Creates an entire path, if it doesn't already exist."""
  file_path = os.path.join(*path)
  try:
    os.makedirs(file_path)
  except OSError as e:
    # errno.EEXIST is "File exists".  If we see another error, re-raise.
    if e.errno != errno.EEXIST:
      raise
Creates an entire path, if it doesn't already exist.
Creates an entire path, if it doesn't already exist.
Creates an entire path if it doesn ' t already exist .
def MaybeMakeDirectory(*path):
  file_path = os.path.join(*path)
  try:
    os.makedirs(file_path)
  except OSError as e:
    if e.errno != errno.EEXIST:
      raise
def MaybeMakeDirectory ( * path ) : file_path = os . path . join ( * path ) try : os . makedirs ( file_path ) except OSError as e : if e . errno != errno . EEXIST : raise
Creates an entire path, if it doesn't already exist.
Creates an entire path if it doesn ' t already exist .
"""Creates an entire path, if it doesn't already exist.""" # errno.EEXIST is "File exists".  If we see another error, re-raise.