Created
March 14, 2019 17:27
-
-
Save glefait/b0b350d19b8b7c2b61fbf9e0229c122c to your computer and use it in GitHub Desktop.
get xattr url of objects (downloaded resources)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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