fs-manager-udroid
fs-manager-udroid copied to clipboard
support for multiple formats
Looks like some tar version requires special arguments for different formats. like -z for gzip's --zstd for zstd types
- check for file formats and use arguments based on formats
Current progress bar implementation works with pv and tar does not support compression type detection when it receives file from standard input.
https://github.com/RandomCoderOrg/fs-manager-udroid/blob/bf365c3f1ce5e1ff7a9e78503a4c236cf72bd04a/udroid/src/proot-utils/proot-utils.sh#L42-L44
To support multiple compression types there are two solutions.
- Add check for compression types.
- Use tar checkpoints and checkpoint actions feature to calculate progress and create progress bar