diff options
author | Ted Trask <ttrask01@yahoo.com> | 2014-04-25 09:59:44 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2014-04-25 09:59:44 +0000 |
commit | bbc0dfae6221043839846ba34d3553d88d2cfe3b (patch) | |
tree | 908816e2b02c358bafa560c256ef296eb2d5fba3 | |
parent | 63ca4dc3b386c314e015c8b3e87a724f8f3140c5 (diff) | |
download | acf-lib-bbc0dfae6221043839846ba34d3553d88d2cfe3b.tar.bz2 acf-lib-bbc0dfae6221043839846ba34d3553d88d2cfe3b.tar.xz |
Make fs.stat also report the original ctime, mtime, and size values
-rw-r--r-- | fs.lua | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -217,6 +217,10 @@ end function mymodule.stat ( path ) local filedetails = posix.stat(path or "") if (filedetails) then + filedetails["orig_ctime"] = filedetails["ctime"] + filedetails["orig_mtime"] = filedetails["mtime"] + filedetails["orig_size"] = filedetails["size"] + filedetails["ctime"]=os.date("%c", filedetails["ctime"]) filedetails["mtime"]=os.date("%c", filedetails["mtime"]) filedetails["path"]=path |