Lines Matching defs:path
20 bool Compress::AddPath(std::string path)
23 int rc = uv_fs_lstat(nullptr, &req, path.c_str(), nullptr);
26 WRITE_LOG(LOG_FATAL, "%s is not exist", path.c_str());
30 return AddEntry(path);
32 if (!AddEntry(path)) {
33 WRITE_LOG(LOG_DEBUG, "AddEntry failed dir:%s", path.c_str());
36 rc = uv_fs_scandir(nullptr, &req, path.c_str(), 0, nullptr);
38 WRITE_LOG(LOG_DEBUG, "uv_fs_scandir failed dir:%s", path.c_str());
47 string subpath = path + Base::GetPathSep() + dent.name;
57 bool Compress::AddEntry(std::string path)
63 if (this->prefix.length() > 0 && path == this->prefix) {
67 Entry entry(this->prefix, path);
68 WRITE_LOG(LOG_DEBUG, "AddEntry %s", path.c_str());