Function TRAP::FileSystem::Rename#
Function Documentation#
-
bool TRAP::FileSystem::Rename(const std::filesystem::path &oldPath, std::string_view newName)#
Rename file or folder.
Note
Only renames if the resulting folder doesn’t already exist.
- Parameters:
oldPath – File or folder to rename.
newName – New name for file or folder.
- Returns:
True on success, false otherwise.