MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / getChildPath

Function getChildPath

TactilityCore/Source/file/File.cpp:44–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44std::string getChildPath(const std::string& basePath, const std::string& childPath) {
45 // Postfix with "/" when the current path isn't "/"
46 if (basePath.length() != 1) {
47 return basePath + "/" + childPath;
48 } else {
49 return "/" + childPath;
50 }
51}
52
53int direntFilterDotEntries(const dirent* entry) {
54 return (strcmp(entry->d_name, "..") == 0 || strcmp(entry->d_name, ".") == 0) ? -1 : 0;

Callers 11

bootSplashInitFunction · 0.85
handleFsRenameMethod · 0.85
copyDirectoryFunction · 0.85
copyRecursiveFunction · 0.85
createDirEntryWidgetMethod · 0.85
onResultMethod · 0.85
onPastePressedMethod · 0.85
getSelectedChildPathMethod · 0.85
getSelectedChildPathMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected