MCPcopy Create free account
hub / github.com/ashkulz/NppFTP / UpdatePath

Method UpdatePath

src/Windows/ProfileObject.cpp:435–454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

433}
434
435bool ProfileObject::UpdatePath()
436{
437 m_path = (char *)MkPath(GetParent()->GetPath(), m_name);
438
439 if (m_profile != NULL) {
440 if(isDir())
441 m_profile->SetParent(SU::Utf8ToTChar(m_path));
442 else
443 m_profile->SetParent(SU::Utf8ToTChar(GetParent()->GetPath()));
444 }
445
446 if (isDir()) {
447 POVector::iterator it;
448 for (it = m_children.begin(); it < m_children.end(); ++it) {
449 (*it)->UpdatePath();
450 }
451 }
452
453 return TRUE;
454}
455
456void ProfileObject::SetProfiles(vProfile* profiles)
457{

Callers 1

SetNameMethod · 0.80

Calls 2

GetPathMethod · 0.45
SetParentMethod · 0.45

Tested by

no test coverage detected