Files
alist/internal/operations/fsutil.go

15 lines
257 B
Go
Raw Normal View History

2022-06-10 17:18:27 +08:00
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
}