mirror of https://github.com/Xhofe/alist
18 lines
302 B
Go
18 lines
302 B
Go
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)
|
|
}
|
|
}
|