feat: add root prefix before operate
This commit is contained in:
14
internal/fs/util.go
Normal file
14
internal/fs/util.go
Normal file
@ -0,0 +1,14 @@
|
||||
package fs
|
||||
|
||||
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