Skip to content

Instantly share code, notes, and snippets.

@gumblex
Created February 16, 2017 07:32
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 gumblex/60df24fb83d4cf30b120cc1cb9d66639 to your computer and use it in GitHub Desktop.
Save gumblex/60df24fb83d4cf30b120cc1cb9d66639 to your computer and use it in GitHub Desktop.
Simple script to get rid of url escaped filenames.
#!/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