summaryrefslogtreecommitdiffstats
path: root/base/file_util_win.cc
diff options
context:
space:
mode:
authorerikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-12 17:33:52 +0000
committererikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-12 17:33:52 +0000
commit1265917f0c7b19bb242e21111032fb4f35b3767a (patch)
tree999c4397962987f16d9d20fd4e76f31ae52d397c /base/file_util_win.cc
parent5513ee8e5373a2e7e52d2ec32ce2b608d6ac1415 (diff)
downloadchromium_src-1265917f0c7b19bb242e21111032fb4f35b3767a.zip
chromium_src-1265917f0c7b19bb242e21111032fb4f35b3767a.tar.gz
chromium_src-1265917f0c7b19bb242e21111032fb4f35b3767a.tar.bz2
I accidentally committed file_version_info. Since comments were relatively minor, I created a new CL rather than reverting the old one.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@722 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util_win.cc')
-rw-r--r--base/file_util_win.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/base/file_util_win.cc b/base/file_util_win.cc
index 251d030..f415016 100644
--- a/base/file_util_win.cc
+++ b/base/file_util_win.cc
@@ -54,6 +54,14 @@ std::wstring GetDirectoryFromPath(const std::wstring& path) {
TrimTrailingSeparator(&directory);
return directory;
}
+
+bool AbsolutePath(std::wstring* path) {
+ wchar_t file_path_buf[MAX_PATH];
+ if (!_wfullpath(file_path_buf, path->c_str(), MAX_PATH))
+ return false;
+ *path = file_path_buf;
+ return true;
+}
int CountFilesCreatedAfter(const std::wstring& path,
const FILETIME& comparison_time) {