<s> from __future__ import absolute_import , unicode_literals <EOL> import os <EOL> from django . core . management . base import NoArgsCommand <EOL> from django . utils . encoding import force_text <EOL> from feincms . module . medialibrary . models import MediaFile <EOL> class Command ( NoArgsCommand ) : <EOL> help = "<STR_LIT>" <EOL> def handle_noargs ( self , ** options ) : <EOL> mediafiles = list ( MediaFile . objects . values_list ( '<STR_LIT:file>' , flat = True ) ) <EOL> for base , dirs , files in os . walk ( '<STR_LIT>' ) : <EOL> for f in files : <EOL> full = os . path . join ( base [ <NUM_LIT:6> : ] , f ) <EOL> if force_text ( full ) not in mediafiles : <EOL> self . stdout . write ( os . path . join ( base , f ) ) </s>
