Skip to content

Commit 3918917

Browse files
committed
dev: add appdata_app property to stat response
1 parent 6598798 commit 3918917

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/backend/src/filesystem/FSNodeContext.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -814,6 +814,12 @@ module.exports = class FSNodeContext {
814814
const app = await get_app({ id: fsentry.associated_app_id });
815815
fsentry.associated_app = app;
816816
}
817+
818+
// If this file is in an appdata directory, add `appdata_app`
819+
const components = await this.getPathComponents();
820+
if ( components[1] === 'AppData' ) {
821+
fsentry.appdata_app = components[2];
822+
}
817823

818824
fsentry.is_dir = !! fsentry.is_dir;
819825

0 commit comments

Comments
 (0)