Lines Matching refs:path
117 bool ReadFileToStringWithMaxSize(const FilePath& path,
122 if (path.ReferencesParent())
124 FILE* file = OpenFile(path, "rb");
129 // Many files supplied in |path| have incorrect size (proc files etc).
134 if (!GetFileSize(path, &chunk_size) || chunk_size <= 0)
175 bool ReadFileToString(const FilePath& path, std::string* contents) {
176 return ReadFileToStringWithMaxSize(path, contents,
224 int GetUniquePathNumber(const FilePath& path,
227 if (!PathExists(path) &&
228 (!have_suffix || !PathExists(FilePath(path.value() + suffix)))) {
234 new_path = path.InsertBeforeExtensionASCII(StringPrintf(" (%d)", count));