mirror of
https://github.com/siderolabs/talos.git
synced 2025-08-22 15:11:10 +02:00
This unifies low-level filesystem walker code for `ls` and `cp`. New features: * `ls` now reports relative filenames * `ls` now prints symlink destination for symlinks * `cp` now properly always reports errors from the API * `cp` now reports all the errors back to the client Example for `ls`: ``` osctl-linux-amd64 --talosconfig talosconfig ls -l /var MODE SIZE(B) LASTMOD NAME drwxr-xr-x 4096 Jun 26 2019 . Lrwxrwxrwx 4 Jun 25 2019 etc -> /etc drwxr-xr-x 4096 Jun 26 2019 lib drwxr-xr-x 4096 Jun 21 2019 libexec drwxr-xr-x 4096 Jun 26 2019 log drwxr-xr-x 4096 Jun 21 2019 mail drwxr-xr-x 4096 Jun 26 2019 opt Lrwxrwxrwx 6 Jun 21 2019 run -> ../run drwxr-xr-x 4096 Jun 21 2019 spool dtrwxrwxrwx 4096 Jun 21 2019 tmp -rw------- 14979 Jun 26 2019 userdata.yaml ``` Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>