def makedirs(self, ignoreExistingDirectory=False):
        """
        Create all directories not yet existing in C{path} segments, using
        L{os.makedirs}.

        @param ignoreExistingDirectory: Don't raise L{OSError} if directory
            already exists.
        @type ignoreExistingDirectory: L{bool}

        @return: L{None}
        """
        try:
            return os.makedirs(self.path)
        except OSError as e:
            if not (
                e.errno == errno.EEXIST and
                ignoreExistingDirectory and
                    self.isdir()):
                raise

        Create all directories not yet existing in C{path} segments, using
        L{os.makedirs}.

        @param ignoreExistingDirectory: Don't raise L{OSError} if directory
            already exists.
        @type ignoreExistingDirectory: L{bool}

        @return: L{None}
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/filepath.py