mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-03 21:51:01 -05:00
dev: add appdata_app property to stat response
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user