wip: use items in offline_download

This commit is contained in:
Andy Hsu
2023-10-05 13:38:35 +08:00
parent 0acb2d6073
commit 0380d7fff9
11 changed files with 36 additions and 15 deletions

View File

@@ -0,0 +1,17 @@
package tool_test
import (
"testing"
"github.com/alist-org/alist/v3/internal/offline_download/tool"
)
func TestGetFiles(t *testing.T) {
files, err := tool.GetFiles("..")
if err != nil {
t.Fatal(err)
}
for _, file := range files {
t.Log(file.Name, file.Size, file.Path, file.Modified)
}
}