Know which Filesystem a File is on?

If I have 2 files is it possible to know if they are mounted on different filesystems?

I can not see anything described in the Metadata here:

Is it possible to work it out from a File's inode?

The reason I ask is because it has been raised as an issue on my project:

For Unix machines there's device ID:

1 Like

If you're using walkdir (or ignore), then you can use its same_file_system option.

Otherwise, you can copy the implementation which works on Windows:

1 Like