basic download completeness check

This commit is contained in:
polv committed 2026-03-05 16:46:57 +07:00
1 parent ac2ceef948
commit e435ad3a82
4 files changed
+38 -15

No files matched your search

+4 -1
View File
@@ -11,7 +11,10 @@ async function main() {
const { data, error } = await supabase.storage.from("yomitan").list("ja");
if (error) throw error;
if (data) {
console.log(data.map((d) => d.id));
console.log(data);
// no sha256, but may be precomputed and manually placed at data[*].metadata.*
// data[*].metadata.{size,contentLength} could be meaningful
// GitHub releases uses digest: 'sha256:*' in assets[*].digest currently
const toDownload = data.filter(() => true);