Created
July 21, 2008 01:23
-
-
Save anonymous/37 to your computer and use it in GitHub Desktop.
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
import re | |
import glob | |
import os | |
for i in files: | |
i = re.sub("papers", "notes", i.lower()) | |
i = re.sub(" ", ".", i) | |
i = re.sub("[-,?():]", "", i) | |
i = re.sub("\.+", ".", i) | |
i = re.sub("pdf$", "rst", i) | |
with file(i, 'a'): | |
os.utime(i, None) |
Just commenting
Just commenting
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just commenting