mirror of
https://github.com/HChaZZY/alist.git
synced 2025-12-20 17:16:39 +08:00
feat(fs): list files
This commit is contained in:
14
internal/operations/fsutil.go
Normal file
14
internal/operations/fsutil.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user