From 4b31204224d6e46de1a4c32aa471f0ab24079355 Mon Sep 17 00:00:00 2001 From: KernelDeimos <7225168+KernelDeimos@users.noreply.github.com> Date: Fri, 12 Dec 2025 17:04:13 -0500 Subject: [PATCH] perf: condition for re-fetch in fsNode.exists() --- src/backend/src/filesystem/FSNodeContext.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/backend/src/filesystem/FSNodeContext.js b/src/backend/src/filesystem/FSNodeContext.js index 3fa3d2a9..adde8914 100644 --- a/src/backend/src/filesystem/FSNodeContext.js +++ b/src/backend/src/filesystem/FSNodeContext.js @@ -261,6 +261,9 @@ module.exports = class FSNodeContext { } async exists ({ fetch_options } = {}) { + if ( this.found !== undefined ) { + return this.found; + } await this.fetchEntry(fetch_options); if ( ! this.found ) { this.log.debug(`here's why it doesn't exist: ${