(io): cannot save json on mounted disk
Description
Create a custom rename
function that will first try a std::filesystem::rename
and then fallback to a basic copy-remove scenario.
Using this avoid the Invalid cross-device link
error, when saving a json(z) file on a another disk/volume.
Closes #594 (closed)
How to test it?
Try to save a json from VRRender on a other disk with and without this MR.
NOTE: This need to be tested on windows, this may be unnecessary.
Additional tests to run
-
Linux -
Windows (maybe not useful on windows)