| 270 | } |
| 271 | |
| 272 | BString Fs::getFileNameFromNativePath(const BString& path) { |
| 273 | int pos = path.lastIndexOf(Fs::nativePathSeperator); |
| 274 | if (pos==-1) { |
| 275 | return path; |
| 276 | } |
| 277 | return path.substr(pos+1); |
| 278 | } |
| 279 | |
| 280 | bool Fs::doesNativePathExist(const BString& path) { |
| 281 | if (::access(path.c_str(), 0)!=-1) { |
nothing calls this directly
no test coverage detected