Function TRAP::FileSystem::Move#

Function Documentation#

bool TRAP::FileSystem::Move(const std::filesystem::path &oldPath, const std::filesystem::path &newPath)#

Move file or folder from oldPath to newPath.

Note

Only moves if newPath doesnt already exist.

Parameters:
  • oldPath – Path to move from.

  • newPath – Path to move to.

Returns:

True on successfull move or if oldPath and newPath are the same, false otherwise.