Skip to content

Fix FUSE directory comparisons

mscdex requested to merge mscdex/meld:mscdex-master-patch-83759 into master

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, but gio.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.

Merge request reports

Loading