Skip to content

(io): cannot save json on mounted disk

Marc SCHWEITZER requested to merge 594-io-cannot-save-json-on-mounted-disk into dev

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)
Edited by Marc SCHWEITZER

Merge request reports