def handle_noargs(self, **options):
        mediafiles = list(MediaFile.objects.values_list('file', flat=True))

        # TODO make this smarter, and take MEDIA_ROOT into account
        for base, dirs, files in os.walk('media/medialibrary'):
            for f in files:
                full = os.path.join(base[6:], f)
                if force_text(full) not in mediafiles:
                    self.stdout.write(os.path.join(base, f))
dataset/ETHPy150Open feincms/feincms/feincms/management/commands/medialibrary_orphans.py/Command.handle_noargs/original