| 133 | } |
| 134 | |
| 135 | BString Fs::getFullPath(const BString& currentDirectory, const BString& path) { |
| 136 | BString fullpath; |
| 137 | |
| 138 | if (path.startsWith("/")) |
| 139 | fullpath = path; |
| 140 | else |
| 141 | fullpath = currentDirectory+"/"+path; |
| 142 | if (fullpath.endsWith("/.")) |
| 143 | fullpath = fullpath.substr(0, fullpath.length()-2); |
| 144 | fullpath.replace("//", "/"); |
| 145 | return fullpath; |
| 146 | } |
| 147 | |
| 148 | bool cleanPath(std::vector<BString>& parts) { |
| 149 | for (U32 i=0;i<parts.size();) { |
nothing calls this directly
no test coverage detected