Fix FUSE directory comparisons
I've been running into the "remote folder not supported" error while trying to compare directories mounted via FUSE.
According to the is_native()
docs:
On some systems non-native files may be available using the native filesystem via a userspace filesystem (FUSE), in these cases this call will return
False
, butgio.File.get_path()
will still return a native path.
So calling get_path()
and checking its result should allow us to detect directories from FUSE filesystems and thus avoid the error. I've verified this change works.