Function hooks can call $.fs.ancestors to gather memory files from every parent directory.
What's wrong with this entry?
Function hooks can call $.fs.ancestors, which walks from the project directory up to the filesystem root and gathers named memory files along the way. It returns an empty list when project memory is turned off.
- Skips the walk entirely when project memory is disabled, so the result is
[]rather than an error. - Honours the approval flag for including files from outside the project.
- Logs how many of the walked directories actually contained a match.
$.fs.ancestors
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Related
Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.
-
v2.1.234
SessionEnd hooks lose the
bypass_permissions_disabledreasonBoth mention hook
-
v2.1.236
Hooks and Ctrl-C go quiet once shutdown has started
Both mention hook
-
v2.1.236
Shutdown seals transcript writes and gives SessionEnd hooks more time
Both mention hook