dev: add appdata_app property to stat response

This commit is contained in:
KernelDeimos
2025-06-18 00:22:15 -04:00
parent 659879812d
commit 3918917f31
@@ -814,6 +814,12 @@ module.exports = class FSNodeContext {
const app = await get_app({ id: fsentry.associated_app_id });
fsentry.associated_app = app;
}
// If this file is in an appdata directory, add `appdata_app`
const components = await this.getPathComponents();
if ( components[1] === 'AppData' ) {
fsentry.appdata_app = components[2];
}
fsentry.is_dir = !! fsentry.is_dir;