Open jrutgeer opened 1 year ago
Interesting, good catch. Would you be interested in doing a PR with the proposed workaround (copy+delete)
good catch.
Well, I did not catch it, I experienced it... ;-)
While I generally try to contribute (e.g. fix, new functionality, system plugin), I cannot commit time for this one unfortunately.
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.