jw-pkg/src/python/jw/pkg/lib/ec
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jan Lindemann 0d0f1966ef
All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 4m51s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 4m53s
CI / Packaging test (pull_request) Successful in 0s
CI / Packaging - Kali Linux (push) Successful in 4m21s
CI / Packaging - OpenSUSE Tumbleweed (push) Successful in 4m45s
CI / Packaging test (push) Successful in 0s
lib: Add hierarchical FileType framework
Introduce FileType, a class consisting of a name and a parent property,
designed to make the information FileContext.stat() provides about a
path-addressable object richer.

A FileType property goes as ftype into the StatResult structure. Along with
it, this commit adds a central registry (FileTypes) where the type hierarchy
is kept, and additional parameters to put() and mkdir() to allow creating
typed FileContext objects.

Builtin types are:

  - FT_REG: A regular file, the default thing put() creates
  - FT_DIR: A directory, the default thing mkdir() creates
  - FT_TOP: The parent of the two
  - FT_COMPOUND: An FT_REG returning child entries from readdir()

Signed-off-by: Jan Lindemann <jan@janware.com>
Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v1.0.1
2026-10-17 09:55:16 +02:00
..
ssh lib.ec.ssh.Exec: Fix askpass script 2026-09-14 20:32:14 +02:00
Curl.py lib.FileContext: Add readdir() method 2026-09-29 15:29:19 +02:00
Local.py lib: Add hierarchical FileType framework 2026-10-17 09:55:16 +02:00
Makefile lib.Distro, ExecContext: Add classes, refactor lib.distro 2026-03-06 14:56:46 +01:00
SSHClient.py App, cmds, lib: Fix Any returns from typed functions 2026-08-09 12:07:37 +00:00