cmds.posix.CmdCopy: Don't copy(App.exec_context.path_filter)
All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 5m14s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 5m10s
CI / Packaging test (pull_request) Successful in 0s

The App's target exec context's path_filter gets passed to util.copy().
That might be a fine idea, but the semantics are too hard to understand at
this point, so, if copy should be limited by a path filter, it should to be
passed as a query string attached to the source- or target file context.

This commit enforces just that by dropping the default_exec_context
argument to copy().

Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v1.5.0
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-11-09 18:51:59 +01:00
commit 7ca07b21fe
Signed by: Jan Lindemann
GPG key ID: 3750640C9E25DD61

View file

@ -67,5 +67,4 @@ class CmdCopy(Cmd): # export
mode = int(args.mode, 0) if args.mode is not None else None,
recursive = args.recursive,
parents = args.parents,
default_path_filter = self.app.exec_context.path_filter,
)