}
PathCompList_t CList;
- CList.push_back(cwd_buf);
+ PathToComponents(cwd_buf, CList);
CList.push_back(Path);
return ComponentsToAbsolutePath(s_PathMakeCanonical(CList, true), separator);
Kumu::CreateDirectoriesInPath(const std::string& Path)
{
bool abs = PathIsAbsolute(Path);
- assert(abs);
PathCompList_t PathComps, TmpPathComps;
PathToComponents(Path, PathComps);
Result_t
h__DeletePath(const std::string& pathname)
{
- fprintf(stderr, "h__DeletePath %s\n", pathname.c_str());
+ if ( pathname.empty() )
+ return RESULT_NULL_STR;
+
Result_t result = RESULT_OK;
if ( ! PathIsDirectory(pathname) )