Given two Path structures, how can I determine if they are on the same file system?
I need to move a file using std::fs::rename, but I only want to perform the rename if the source and destination are on the same filesystem (otherwise, the rename is bound to fail).
In bash, I'd use stat -c "%d" PATH. Rust has std::fs::metadata, but it doesn't seem to return the fsid.