<s> """<STR_LIT>""" <EOL> from neurovault . settings import PRIVATE_MEDIA_ROOT <EOL> import os <EOL> import os . path <EOL> from neurovault . apps . statmaps . models import * <EOL> def delOldCollDir ( ) : <EOL> collDir = os . path . join ( PRIVATE_MEDIA_ROOT , '<STR_LIT>' ) <EOL> for folder in os . listdir ( collDir ) : <EOL> if not Collection . objects . filter ( pk = folder ) : <EOL> os . rmdir ( os . path . join ( collDir , folder ) ) <EOL> delOldCollDir ( ) </s>
