| 343 | } |
| 344 | |
| 345 | RenameResult FilesystemDisk::rename(const char *old_path, const char *new_path) |
| 346 | { |
| 347 | CE_ENSURE(old_path != NULL); |
| 348 | CE_ENSURE(new_path != NULL); |
| 349 | |
| 350 | DynamicString old_abs_path(default_allocator()); |
| 351 | DynamicString new_abs_path(default_allocator()); |
| 352 | absolute_path(old_abs_path, old_path); |
| 353 | absolute_path(new_abs_path, new_path); |
| 354 | |
| 355 | return os::rename(old_abs_path.c_str(), new_abs_path.c_str()); |
| 356 | } |
| 357 | |
| 358 | void FilesystemDisk::list_files(const char *path, Vector<DynamicString> &files) |
| 359 | { |