Skip to content

Instantly share code, notes, and snippets.

@glefait
Created March 14, 2019 17:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save glefait/b0b350d19b8b7c2b61fbf9e0229c122c to your computer and use it in GitHub Desktop.
Save glefait/b0b350d19b8b7c2b61fbf9e0229c122c to your computer and use it in GitHub Desktop.
get xattr url of objects (downloaded resources)
for (o, url) in [(x, os.getxattr(x, 'user.xdg.origin.url')) for x in os.listdir('.') if 'user.xdg.origin.url' in os.listxattr(x)]: print(o, url)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment