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