pub async fn prune(directory: &Path, age: Duration) -> Result<usize>Expand description
Deletes the temporary uploads older than age, and reports how many it deleted.
A scheduled task runs this: an upload the browser never finished has no owner after its signed URL expires, so the directory would otherwise keep it forever. A missing directory is not an error; neither is a file that vanished while it was being read.