Lines Matching defs:dir
120 string dir = ctxNow.localPath.substr(0, rindex);
121 RemovePath(dir);
122 WRITE_LOG(LOG_DEBUG, "RemovePath dir:%s", dir.c_str());
192 string dir;
196 dir = tarpath.substr(0, rindex) + Base::GetPathSep();
197 WRITE_LOG(LOG_DEBUG, "path:%s dir:%s", path, dir.c_str());
199 dc.DecompressToLocal(dir);
201 return dir;
204 int HdcDaemonApp::RemoveDir(const string &dir)
206 DIR *pdir = opendir(dir.c_str());
208 WRITE_LOG(LOG_FATAL, "opendir failed dir:%s", dir.c_str());
217 std::string subpath = dir + Base::GetPathSep() + ent->d_name;
234 if (rmdir(dir.c_str()) == -1) {
274 string dir = Tar2Dir(context->localPath.c_str());
275 if (!dir.empty()) {
276 PackageShell(true, context->transferConfig.options.c_str(), dir.c_str());