Created
February 16, 2017 07:32
-
-
Save gumblex/60df24fb83d4cf30b120cc1cb9d66639 to your computer and use it in GitHub Desktop.
Simple script to get rid of url escaped filenames.
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import os | |
import sys | |
import urllib.parse | |
for f in sys.argv[1:]: | |
os.rename(f, urllib.parse.unquote_plus(f)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment