diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-24 16:13:53 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-24 16:13:53 +0000 |
commit | 5ef32389474a8c9db4bbdada978e0e9e07b0bdd0 (patch) | |
tree | fec5d9fd21f108ad6012a86b36c90ad82cb43d90 /base/file_util_posix.cc | |
parent | a8804826f80de85728173e1172fb569fdf9d466a (diff) | |
download | chromium_src-5ef32389474a8c9db4bbdada978e0e9e07b0bdd0.zip chromium_src-5ef32389474a8c9db4bbdada978e0e9e07b0bdd0.tar.gz chromium_src-5ef32389474a8c9db4bbdada978e0e9e07b0bdd0.tar.bz2 |
Adding last modified time to file_util
Original review: http://codereview.chromium.org/160050
Patch by dhg@google.com
Review URL: http://codereview.chromium.org/159347
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21533 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util_posix.cc')
-rw-r--r-- | base/file_util_posix.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/base/file_util_posix.cc b/base/file_util_posix.cc index 58454cf..6642eaa 100644 --- a/base/file_util_posix.cc +++ b/base/file_util_posix.cc @@ -525,6 +525,7 @@ bool GetFileInfo(const FilePath& file_path, FileInfo* results) { return false; results->is_directory = S_ISDIR(file_info.st_mode); results->size = file_info.st_size; + results->last_modified = base::Time::FromTimeT(file_info.st_mtime); return true; } |