scripts/github_stats.py
def checkDir(self, file_path=''):
        """
        Checks if a directory exists. If not, it creates one with the specified
        file_path.
        """
        if not os.path.exists(os.path.dirname(file_path)):
            try:
                os.makedirs(os.path.dirname(file_path))
            except OSError as e:
                if e.errno != errno.EEXIST:
                    raise
def checkDir(self, file_path=''):
        """
        Checks if a directory exists. If not, it creates one with the specified
        file_path.
        """
        if not os.path.exists(os.path.dirname(file_path)):
            try:
                os.makedirs(os.path.dirname(file_path))
            except OSError as e:
                if e.errno != errno.EEXIST:
                    raise
def checkDir ( self , file_path = '' ) : if not os . path . exists ( os . path . dirname ( file_path ) ) : try : os . makedirs ( os . path . dirname ( file_path ) ) except OSError as e : if e . errno != errno . EEXIST : raise
Checks if a directory exists. If not, it creates one with the specified
        file_path.
Checks if a directory exists . If not it creates one with the specified file_path .