kaput-cli icon indicating copy to clipboard operation
kaput-cli copied to clipboard

New Features: Recursive and multiple downloads

Open kylepmanuel opened this issue 5 months ago • 2 comments

New feature requests:

  • -r | --recursive - Recursively download folder and contents without zipping
  • -i | --input FILE_NAME - Use a text file as input for download. One FILE_ID per line

Recursively download a folder and it's contents without zipping:

kaput files download -r FILE_ID

Download all files/folders listed by id from an input file. This would still zip folders:

kaput files download -i downloads.txt

Download all files/folders listed by id from an input file recursively. No zipping of folders:

kaput files download -ir downloads.txt

Possibly allow piping as input which would effectively mean this command downloads everything recursively without zipping:

kaput files list | perl -ne '/^\|\s(\d{8,10})\s+\|/ && print "$1\n";' | kaput files download -r

or if you are in the mood for formatting output something like this:

kaput files list -o '{id}\n' | kaput files download -r

where {field_name} is one of the available fields printed from kaput files list headers

kylepmanuel avatar Jan 21 '24 08:01 kylepmanuel