Definition at line 334 of file Database.h. References DoMkDir(), ILOG_DEBUG, and Impala::StringReplaceAll(). Referenced by DoMkDirPath(). 00335 { 00336 String dir = StringReplaceAll(dirWithBackSlashes, "\\", "/"); 00337 ILOG_DEBUG("DoMkDirPath: " << dir); 00338 StringList subDirs(dir, '/'); 00339 String path(""); 00340 if (dir[0] == '/') 00341 path = String("/"); 00342 for (StringListCI i=subDirs.begin() ; i!=subDirs.end() ; i++) 00343 { 00344 CString subDir = *i; 00345 ILOG_DEBUG(" DoMkDirPath: subDir = " << subDir); 00346 if (subDir.size() == 0) 00347 continue; 00348 if ((path.size() > 0) && (*path.rbegin() != '/')) 00349 path = path + "/"; 00350 path = path + *i; 00351 DoMkDir(path); 00352 } 00353 return path; 00354 }
Here is the call graph for this function:
|