feat(fs): list files

This commit is contained in:
Noah Hsu
2022-06-10 17:18:27 +08:00
parent c5e5666b64
commit 122b7baa73
4 changed files with 73 additions and 7 deletions

View File

@@ -0,0 +1,14 @@
package operations
import (
"github.com/alist-org/alist/v3/internal/driver"
)
func containsByName(files []driver.FileInfo, file driver.FileInfo) bool {
for _, f := range files {
if f.GetName() == file.GetName() {
return true
}
}
return false
}