This file contains hidden or 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 os, sys, datetime, re | |
def prefix_date(path): | |
location, file_name = os.path.split(path) | |
if re.match("\d{6}_.*", file_name): | |
print(file_name+" has already a timestamp") | |
return | |
time_stamp = os.path.getmtime(path) | |
prefix = datetime.datetime.fromtimestamp(time_stamp).strftime("%y%m%d_") | |
os.rename(path, os.path.join(location, prefix+file_name)) |
This file contains hidden or 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
[Nemo Action] | |
Active=true | |
Name=Compare with meld | |
Name[cz]=Srovnání s meld | |
Name[de]=Mit meld vergleichen | |
Name[fr]=Comparer avec meld | |
Name[nl]=Vergelijk met meld |