gz::common:moveFile()
does not work accross different partitions
#533
Labels
bug
Something isn't working
gz::common:moveFile()
does not work accross different partitions
#533
Environment
Description
gz::common:moveFile()
callsstd::filesystem::rename()
, which fails with errorgeneric:18 Invalid cross-device link
if the source and destination folder are on different partitions.Steps to reproduce
E.g. with
/home
and/
mounted on different partitions:gz sim lights.sdf
,/tmp
Possible fix
I found this similar report (though
boost
rather thanstd
), which proposes to copy + delete original if succesful.The text was updated successfully, but these errors were encountered: