| 250 | } |
| 251 | |
| 252 | BString Fs::getNativeParentPath(const BString& path) { |
| 253 | int pos = path.lastIndexOf(Fs::nativePathSeperator); |
| 254 | if (pos != -1) { |
| 255 | return path.substr(0, pos); |
| 256 | } |
| 257 | pos = path.lastIndexOf('/'); |
| 258 | if (pos != -1) { |
| 259 | return path.substr(0, pos); |
| 260 | } |
| 261 | return path; |
| 262 | } |
| 263 | |
| 264 | BString Fs::getFileNameFromPath(const BString& path) { |
| 265 | int pos = path.lastIndexOf('/'); |
nothing calls this directly
no test coverage detected