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

Method MkPath

src/Windows/ProfileObject.cpp:183–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183char* ProfileObject::MkPath(const char* first, const char* second) const
184{
185 size_t lgFirst = strlen(first);
186 size_t lgSecond = strlen(second);
187
188 if (lgFirst == 0) return SU::strdup(second);
189 if (lgSecond == 0) return SU::strdup(first);
190
191 char* ret = new char[lgFirst + lgSecond + strlen("/") + 1];
192 strcpy(ret, first);
193 strcat(ret, "/");
194 strcat(ret, second);
195 return ret;
196
197}
198
199ProfileObject* ProfileObject::AddChild(const char* path, const char* name, FTPProfile* profile) {
200

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected