From 7ca07b21fea3d9c378e7923c76ff82a1c5acdcf7 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Mon, 9 Nov 2026 18:51:59 +0100 Subject: [PATCH] cmds.posix.CmdCopy: Don't copy(App.exec_context.path_filter) 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 --- src/python/jw/pkg/cmds/posix/CmdCopy.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/python/jw/pkg/cmds/posix/CmdCopy.py b/src/python/jw/pkg/cmds/posix/CmdCopy.py index afa7c4ff..96014c79 100644 --- a/src/python/jw/pkg/cmds/posix/CmdCopy.py +++ b/src/python/jw/pkg/cmds/posix/CmdCopy.py @@ -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, ) -- 2.56.1