Lines Matching refs:src_path
65 fs::path src_path = file.path(); in DecompressFiles() local
66 if (src_path.extension() == ".gz") { in DecompressFiles()
67 fs::path dst_path = fs::path(src_path).replace_extension(); // Remove .gz extension. in DecompressFiles()
68 if (!fs::exists(dst_path) || fs::last_write_time(src_path) > fs::last_write_time(dst_path)) { in DecompressFiles()
69 gzFile src = gzopen(src_path.c_str(), "rb"); in DecompressFiles()
71 fs::path tmp_path = fs::path(src_path).replace_extension("." + std::to_string(getpid())); in DecompressFiles()
89 fs::path src_path = file.path(); in CreateLinks() local
90 if (fs::is_regular_file(src_path) && src_path.filename() == "links.txt") { in CreateLinks()
92 if (!android::base::ReadFileToString(src_path.c_str(), &contents)) { in CreateLinks()
93 errx(1, "Unable to read file: %s", src_path.c_str()); in CreateLinks()
95 fs::path parent_path = src_path.parent_path(); in CreateLinks()
105 errx(1, "Invalid line in %s: line %s", src_path.c_str(), line.c_str()); in CreateLinks()