mirror of
https://github.com/HeyPuter/puter.git
synced 2025-12-21 12:59:52 -06:00
perf: condition for re-fetch in fsNode.exists()
This commit is contained in:
@@ -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: ${
|
||||
|
||||
Reference in New Issue
Block a user