From 3fe6b8d23a786b45e351972e32bf40ae37926f2b Mon Sep 17 00:00:00 2001 From: KernelDeimos <7225168+KernelDeimos@users.noreply.github.com> Date: Fri, 12 Dec 2025 17:07:59 -0500 Subject: [PATCH] fix: fsNode.is() requiring unnecessary fetch When you have two path selectors, .is() should compare path strings instead of fetching any entries. --- src/backend/src/filesystem/FSNodeContext.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/backend/src/filesystem/FSNodeContext.js b/src/backend/src/filesystem/FSNodeContext.js index adde89146..b2ce41d9b 100644 --- a/src/backend/src/filesystem/FSNodeContext.js +++ b/src/backend/src/filesystem/FSNodeContext.js @@ -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;