Re: [pve-devel] [PATCH v4 pve-common 01/12] introduce PVE::Path

2025-04-14 Thread Wolfgang Bumiller
Just so this is up to date, I noted an API weirdness off list: `path_push()` and `path_pop()` are exactly the same - API wise - as `path_join()` and `path_parent()` - they return a new string. This is not how you'd expect push to work. Given that *perl's* `push` uses a by-reference parameter, we s

[pve-devel] [PATCH v4 pve-common 01/12] introduce PVE::Path

2025-02-07 Thread Max Carrara
The PVE::Path module concerns itself with file / directory path operations, like getting the parent directory of a path, extracting the file name of a path, splitting a path into its individual components, joining path components together, comparing paths, and so on. This module is added here in o