diff options
author | dumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-23 19:13:40 +0000 |
---|---|---|
committer | dumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-23 19:13:40 +0000 |
commit | b82ff7e8291ac0e4cb4235b2ca27c141549974f3 (patch) | |
tree | 998e8b7eaf336996b4ff1be50e5f9784bb283059 /base/file_util_posix.cc | |
parent | 64559868446e51a2c16819608f5923f609dc027c (diff) | |
download | chromium_src-b82ff7e8291ac0e4cb4235b2ca27c141549974f3.zip chromium_src-b82ff7e8291ac0e4cb4235b2ca27c141549974f3.tar.gz chromium_src-b82ff7e8291ac0e4cb4235b2ca27c141549974f3.tar.bz2 |
Add a TouchFile function that operates on FilePaths + fixing a bug
related to FILE_WRITE_ATTRIBUTES on Windows.
BUG=none
TEST=FileUtilTest::TouchFile
Review URL: http://codereview.chromium.org/3404018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60322 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util_posix.cc')
-rw-r--r-- | base/file_util_posix.cc | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/base/file_util_posix.cc b/base/file_util_posix.cc index 99e15fe..3709afd 100644 --- a/base/file_util_posix.cc +++ b/base/file_util_posix.cc @@ -486,13 +486,6 @@ bool GetFileInfo(const FilePath& file_path, base::PlatformFileInfo* results) { return true; } -bool SetLastModifiedTime(const FilePath& file_path, base::Time last_modified) { - struct timeval times[2]; - times[0] = last_modified.ToTimeVal(); - times[1] = last_modified.ToTimeVal(); - return (utimes(file_path.value().c_str(), times) == 0); -} - bool GetInode(const FilePath& path, ino_t* inode) { struct stat buffer; int result = stat(path.value().c_str(), &buffer); |