#NEWLINE# def init_cache_storage( self ) : #NEWLINE# #INDENT# root = self . storage_object [ 'path' ] #NEWLINE# self . prefix = slugify ( self . plugin_name ) #NEWLINE# self . server = { #NEWLINE# #INDENT# 'cache' : os . path . join ( root , ( self . project_name + '-crawler-cache' ) , self . prefix ) , #NEWLINE# #UNINDENT# } #NEWLINE# if root . flush_cache : #NEWLINE# #INDENT# self . delete_cache ( ) #NEWLINE# #UNINDENT# for paths in self . server . values ( ) : #NEWLINE# #INDENT# os . makedirs ( paths , exist_ok = True )