summaryrefslogtreecommitdiffstats
path: root/base/file_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/file_util.cc')
-rw-r--r--base/file_util.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/base/file_util.cc b/base/file_util.cc
index dd00d00..f4d0504 100644
--- a/base/file_util.cc
+++ b/base/file_util.cc
@@ -289,7 +289,7 @@ bool ReadFileToString(const std::wstring& path, std::string* contents) {
return true;
}
-bool GetFileSize(const std::wstring& file_path, int64* file_size) {
+bool GetFileSize(const FilePath& file_path, int64* file_size) {
FileInfo info;
if (!GetFileInfo(file_path, &info))
return false;
@@ -350,6 +350,12 @@ bool GetCurrentDirectory(std::wstring* path_str) {
*path_str = path.ToWStringHack();
return true;
}
+bool GetFileInfo(const std::wstring& file_path, FileInfo* results) {
+ return GetFileInfo(FilePath::FromWStringHack(file_path), results);
+}
+bool GetFileSize(const std::wstring& file_path, int64* file_size) {
+ return GetFileSize(FilePath::FromWStringHack(file_path), file_size);
+}
bool GetTempDir(std::wstring* path_str) {
FilePath path;
if (!GetTempDir(&path))