Definition at line 239 of file FileSystem.h. References DoMkDir(), ILOG_DEBUG, and Impala::StringReplaceAll(). Referenced by DoMkDirPath(). 00240 { 00241 String dir = StringReplaceAll(dirWithBackSlashes, "\\", "/"); 00242 ILOG_DEBUG("DoMkDirPath: " << dir); 00243 StringList subDirs(dir, '/'); 00244 String path(""); 00245 if (dir[0] == '/') 00246 path = String("/"); 00247 for (StringListCI i=subDirs.begin() ; i!=subDirs.end() ; i++) 00248 { 00249 CString subDir = *i; 00250 ILOG_DEBUG(" DoMkDirPath: subDir = " << subDir); 00251 if (subDir.size() == 0) 00252 continue; 00253 if ((path.size() > 0) && (*path.rbegin() != '/')) 00254 path = path + "/"; 00255 path = path + *i; 00256 DoMkDir(path); 00257 } 00258 return path; 00259 }
Here is the call graph for this function:
|