(self, image_type=None, reload=False)
return format_file_path(name)
Generate and format a folder/image path.
Generate and format a folder/image path.
Generate and format a folder / image path .
def generate(self, image_type=None, reload=False):
        """Generate and format a folder/image path."""
        name = self._generate(image_type=image_type, reload=reload)
        
        #Replace invalid characters
        invalid_chars = ':*?"<>|'
        for char in invalid_chars:
            if char in name:
                name = name.replace(char, '')
        
        return format_file_path(name)
def generate ( self , image_type = None , reload = False ) : name = self . _generate ( image_type = image_type , reload = reload ) #Replace invalid characters invalid_chars = ':*?"<>|' for char in invalid_chars : if char in name : name = name . replace ( char , '' ) return format_file_path ( name )