fix: fsNode.is() requiring unnecessary fetch

When you have two path selectors, .is() should compare path strings
instead of fetching any entries.
This commit is contained in:
KernelDeimos
2025-12-12 17:07:59 -05:00
committed by Eric Dubé
parent 4b31204224
commit 3fe6b8d23a
@@ -787,6 +787,10 @@ module.exports = class FSNodeContext {
return this.uid === fsNode.uid;
}
if ( this.path && fsNode.path ) {
return await this.get('path') === await fsNode.get('path');
}
await this.fetchEntry();
await fsNode.fetchEntry();
return this.uid === fsNode.uid;