mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user