mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-04 00:20:45 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user