Added comments
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user