Added comments

This commit is contained in:
2017-08-06 16:24:19 +02:00
parent 89223c8c57
commit a83f2c6926

View File

@@ -52,8 +52,9 @@ class MainUI(object):
file_path_lookup[filename] = fullpath file_path_lookup[filename] = fullpath
with open(fullpath, "r") as fhandle: with open(fullpath, "r") as fhandle:
# Get creation time # Get creation timei
appendstring = str(datetime.datetime.strptime(time.ctime(os.path.getctime(fullpath)), "%a %b %d %H:%M:%S %Y")) + "\n" timestamp = time.localtime(os.path.getctime(fullpath))
appendstring = time.strftime("%a %b %d %H:%M:%S %Y", timestamp) + "\n"
if preview: if preview:
line = fhandle.readline() line = fhandle.readline()
line = line.rstrip() line = line.rstrip()