QutEcoacoustics / workbench-client

workbench-client: a client side browser application for interacting with acoustic workbenches
Other
8 stars 1 forks source link

Replace recording batch download powershell script with web file-system apis #2116

Open hudson-newey opened 7 months ago

hudson-newey commented 7 months ago

A common problem for users is that batch downloading audio requires the use of a Powershell script.

This leads to problems such as

Replacing this with file system apis will allow the user to select a directory to batch download audio recordings to (reducing technical friction with powershell).


User flow:

  1. showDirectoryPicker() dialog for the user to select a directory
  2. getDirectoryHandle(, {create: true}) to make sub directories for the sites (ensure that this doesn't generate additional pop-ups)
  3. check if each file exists
  4. write the streams from browser fetch

Potentially using the following file-system apis: