Hello, i have a Problem with sort an Files in a Folder here is my Code: import os import shutil import time verzeichnis = "Linux_Client" last = os.stat("Linux_Client").st_mtime fullname=os.path.join(verzeichnis) full=os.path.relpath(verzeichnis) file=os.listdir(fullname) print file Here is sort about filename but i must sort an Datetime i hope you can help me see you later firedevil
Hi everyone! i'm having som problems with my code. I'm trying to sort the dates when i'm reading them from a file (this doesn't work). If someone know a way that works please help. date = input('Vilket datum? (yyyymmdd): ') notes = raw_input('Vad vill du anteckna?: ') fil = open('filofax.txt', 'a') fil.write(str(date) + ': '+ notes + '\n') fil.close() fil = ...