mirror of
https://github.com/cloudreve/Cloudreve.git
synced 2026-11-17 22:58:07 +00:00
Modify: add unique index for folder & file
This commit is contained in:
1 parent
b3f13c56bc
commit
ceb25ce1c3
6 files changed
+16
-17
No files matched your search
@@ -177,13 +177,11 @@ func (fs *FileSystem) List(ctx context.Context, dirPath string, pathProcessor fu
|
||||
}
|
||||
|
||||
for _, file := range childFiles {
|
||||
filePath := path.Join(folder.Position, folder.Name, file.Name)
|
||||
|
||||
if processedPath == "" {
|
||||
if pathProcessor != nil {
|
||||
processedPath = pathProcessor(filePath)
|
||||
processedPath = pathProcessor(file.Dir)
|
||||
} else {
|
||||
processedPath = filePath
|
||||
processedPath = file.Dir
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user