diff options
Diffstat (limited to 'base/file_util.cc')
-rw-r--r-- | base/file_util.cc | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/base/file_util.cc b/base/file_util.cc index d2e6575..95f334e 100644 --- a/base/file_util.cc +++ b/base/file_util.cc @@ -391,25 +391,12 @@ std::wstring GetFileExtensionFromPath(const std::wstring& path) { return UTF8ToWide(extension); #endif } -bool GetFileInfo(const std::wstring& file_path, FileInfo* results) { - return GetFileInfo(FilePath::FromWStringHack(file_path), results); -} std::wstring GetFilenameFromPath(const std::wstring& path) { if (path.empty() || EndsWithSeparator(path)) return std::wstring(); return FilePath::FromWStringHack(path).BaseName().ToWStringHack(); } -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)) - return false; - *path_str = path.ToWStringHack(); - return true; -} FILE* OpenFile(const std::wstring& filename, const char* mode) { return OpenFile(FilePath::FromWStringHack(filename), mode); } |