perf: condition for re-fetch in fsNode.exists()

This commit is contained in:
KernelDeimos
2025-12-12 17:04:13 -05:00
committed by Eric Dubé
parent 54c2d9768e
commit 4b31204224

View File

@@ -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: ${