| 262 | |
| 263 | |
| 264 | uintmax_t fileSize(const std::string& path) |
| 265 | { |
| 266 | uintmax_t size = 0; |
| 267 | if (isRemote(path)) |
| 268 | { |
| 269 | std::unique_ptr<std::size_t> pSize = arbiter::Arbiter().tryGetSize(path); |
| 270 | if (pSize) |
| 271 | size = *pSize; |
| 272 | } |
| 273 | else |
| 274 | size = FileUtils::fileSize(path); |
| 275 | return size; |
| 276 | } |
| 277 | |
| 278 | /** |
| 279 | Create a file (may be on a supported remote filesystem). |