(self, path)
Create a directory path if needed.

    Args:
      path: (str) A path to a directory where files will be written.  The
        directory will be created if it does not exist.
    Raises:
      ValueError: If the directory exists, but is not writable.
      OSError: If the directory does not exist and cannot be created.
Create a directory path if needed.
Create a directory path if needed .
def _MakePath(self, path):
    """Create a directory path if needed.

    Args:
      path: (str) A path to a directory where files will be written.  The
        directory will be created if it does not exist.
    Raises:
      ValueError: If the directory exists, but is not writable.
      OSError: If the directory does not exist and cannot be created.
    """
    if not os.access(path, os.W_OK):
      if os.access(path, os.F_OK):
        raise ValueError('%s exists, but is not writable' % path)
      os.makedirs(path, 0o755)
def _MakePath ( self , path ) : if not os . access ( path , os . W_OK ) : if os . access ( path , os . F_OK ) : raise ValueError ( '%s exists, but is not writable' % path ) os . makedirs ( path , 0o755 )