mirror of
https://github.com/HeyPuter/puter.git
synced 2026-10-19 10:01:59 +00:00
Switching `getSubtreeSize` to `entry.userId` fixed a recipient reading 0 for a shared folder, but `/stat` is gated on `see` and `return_size` is caller- supplied. `see` is the weakest level -- the folder is visible, what is under it is not -- so the sum now covered entries the caller had no way to enumerate. It is answered only for a caller who passes a `list` check, which is where the contents become enumerable anyway. Everyone below that gets the directory row's own size, which is what they got before this branch. `#assertAccess` grew a non-throwing sibling for this; the descriptor both need moves into `#aclDescriptor`. Test grants `see`, asserts 0, grants `list`, asserts the real size. Without the gate the `see` case reads the file's bytes.