Skip to content

Instantly share code, notes, and snippets.

@larssono
Created January 6, 2016 01:12
Show Gist options
  • Save larssono/16ae95c4705aee8408a4 to your computer and use it in GitHub Desktop.
Save larssono/16ae95c4705aee8408a4 to your computer and use it in GitHub Desktop.
ids = [i['file.id'] for i in syn.chunkedQuery('select id from file where parentId=="syn5521815"')]
for i in ids:
e = syn.get(i, downloadFile=False)
e.properties.fileNameOverride = e.name
syn.store(e, forceVersion=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment