39#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_FILEPATH_H_
40#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_FILEPATH_H_
63 explicit FilePath(
const std::string& pathname) : pathname_(pathname) {
73 pathname_ = rhs.pathname_;
76 const std::string&
string()
const {
return pathname_; }
77 const char*
c_str()
const {
return pathname_.c_str(); }
89 const char* extension);
107 const char* extension);
110 bool IsEmpty()
const {
return pathname_.empty(); }
115 FilePath RemoveTrailingPathSeparator()
const;
123 FilePath RemoveDirectoryName()
const;
137 FilePath RemoveExtension(
const char* extension)
const;
143 bool CreateDirectoriesRecursively()
const;
149 bool CreateFolder()
const;
153 bool FileOrDirectoryExists()
const;
157 bool DirectoryExists()
const;
162 bool IsDirectory()
const;
166 bool IsRootDirectory()
const;
169 bool IsAbsolutePath()
const;
197 const char* FindLastPathSeparator()
const;
199 std::string pathname_;
void Set(const FilePath &rhs)
const std::string & string() const
const char * c_str() const
FilePath & operator=(const FilePath &rhs)
FilePath(const std::string &pathname)
FilePath(const FilePath &rhs)