def run(self):
        entries = []
        for folder_path in self.folder_paths:
            s3 = S3Target(folder_path)
            client = s3.fs
            for file_name in client.list(s3.path):
                entries.append({
                    'url': (folder_path, file_name) % '%s/%s',
                    'mandatory': True
                })
        manifest = {'entries': entries}
        target = self.output().open('w')
        dump = json.dumps(manifest)
        if not self.text_target:
            dump = dump.encode('utf8')
        target.write(dump)
        target.close()
dataset/ETHPy150Open spotify/luigi/luigi/contrib/redshift.py/RedshiftManifestTask.run/swapped operands of `%`