Check to see if a file exists. \param path Path to file. \return Whether the file exists or not. */
| 385 | \return Whether the file exists or not. |
| 386 | */ |
| 387 | bool fileExists(const std::string& path) |
| 388 | { |
| 389 | if (isRemote(path)) |
| 390 | { |
| 391 | arbiter::Arbiter a; |
| 392 | return (a.hasDriver(path) && a.exists(path)); |
| 393 | } |
| 394 | |
| 395 | // Arbiter doesn't handle our STDIN hacks. |
| 396 | return FileUtils::fileExists(path); |
| 397 | } |
| 398 | |
| 399 | double computeHausdorff(PointViewPtr srcView, PointViewPtr candView) |
| 400 | { |