Lines Matching refs:path
44 bool IoDelegate::GetAbsolutePath(const string& path, string* absolute_path) { in GetAbsolutePath() argument
48 DWORD path_len = GetFullPathName(path.c_str(), sizeof(buf), buf, nullptr); in GetAbsolutePath()
50 LOG(ERROR) << "Failed to GetFullPathName(" << path << ")"; in GetAbsolutePath()
59 if (path.empty()) { in GetAbsolutePath()
64 if (path[0] == OS_PATH_SEPARATOR) { in GetAbsolutePath()
65 *absolute_path = path; in GetAbsolutePath()
78 *absolute_path += path; in GetAbsolutePath()
110 bool IoDelegate::FileIsReadable(const string& path) const { in FileIsReadable()
113 return (0 == _access(path.c_str(), 0)) && // mode 0=exist in FileIsReadable()
114 (0 == _access(path.c_str(), 4)); // mode 4=readable in FileIsReadable()
116 return (0 == access(path.c_str(), R_OK)); in FileIsReadable()
149 bool IoDelegate::CreatePathForFile(const string& path) const { in CreatePathForFile()
150 if (path.empty()) { in CreatePathForFile()
155 if (!GetAbsolutePath(path, &absolute_path)) { in CreatePathForFile()