From b8e29b77bc151568cbd82d75ce638adccf40e1d5 Mon Sep 17 00:00:00 2001 From: Tigran Aivazian Date: Thu, 20 Sep 2012 00:06:08 +0100 Subject: [PATCH] File Info tidy up: 1. Fix the "Created" field in file info to say "Status changed" as the ctime has nothing to do with creation of a file but with the time of the last modification to its inode (e.g. owner, group, link count, mode, etc.) 2. Added the field "Accessed" which shows the atime. --- fileinfo.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fileinfo.lua b/fileinfo.lua index aadb2c20e..d3507f214 100644 --- a/fileinfo.lua +++ b/fileinfo.lua @@ -73,10 +73,12 @@ function FileInfo:init(path, fname) info_entry = {dir = "Free space", name = FileInfo:FormatSize(util.df("."))} table.insert(self.result, info_entry) - info_entry = {dir = "Created", name = FileInfo:FileCreated(self.pathfile, "change")} + info_entry = {dir = "Status changed", name = FileInfo:FileCreated(self.pathfile, "change")} table.insert(self.result, info_entry) info_entry = {dir = "Modified", name = FileInfo:FileCreated(self.pathfile, "modification")} table.insert(self.result, info_entry) + info_entry = {dir = "Accessed", name = FileInfo:FileCreated(self.pathfile, "access")} + table.insert(self.result, info_entry) -- if the document was already opened local history = DocToHistory(self.pathfile)