stu icon indicating copy to clipboard operation
stu copied to clipboard

Download files with common prefix ("folder")

Open henrikskog opened this issue 1 year ago • 3 comments

I use s3 for backups, where I structure the backups using prefixes. It would be cool to be able to download a given backup.

henrikskog avatar Jul 13 '24 06:07 henrikskog

When displaying a list of files, are you envisioning a feature like "Save recursively" that allows all files under a specific path to be downloaded together?

I agree that this feature is important for this application.

Here are some concerns that have been hindering the implementation:

  • Since the file size could become large, we need to ensure proper progress display and the ability to cancel the operation appropriately.
  • There could be many requests in a short period, so it is necessary to manage requests properly.
  • To prevent unintended operations, it might be better to show a confirmation dialog.
    • Currently, the application does not have a confirmation dialog implementation.
    • It might be necessary to display the number of target files and the total size beforehand.

lusingander avatar Jul 14 '24 01:07 lusingander

When displaying a list of files, are you envisioning a feature like "Save recursively" that allows all files under a specific path to be downloaded together?

Yes!

I see your concerns! Ratatui probably has some confirmation dialog.

henrikskog avatar Jul 16 '24 19:07 henrikskog

In reality, the implementation of dialog itself is not particularly difficult. The true challenge in TUI applications lies in determining the appropriate implementation approach, as the way widgets are displayed and interacted with can vary greatly depending on the nature of the application and the developer's perspective.

lusingander avatar Jul 18 '24 01:07 lusingander

https://github.com/lusingander/stu/releases/tag/v0.7.0

lusingander avatar Mar 11 '25 23:03 lusingander