Skip to content

Commit

Permalink
refactor(backend/teldrive): remove DuplicateFiles feature and limit o…
Browse files Browse the repository at this point in the history
…bject search results
  • Loading branch information
bhunter234 committed Jan 25, 2025
1 parent 101cdf4 commit 5cb07b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/teldrive/teldrive.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,6 @@ func NewFs(ctx context.Context, name string, root string, config configmap.Mappe
f.root = strings.Trim(root, "/")

f.features = (&fs.Features{
DuplicateFiles: false,
CanHaveEmptyDirectories: true,
ReadMimeType: true,
ChunkWriterDoesntSeek: true,
Expand Down Expand Up @@ -537,6 +536,7 @@ func (f *Fs) findObject(ctx context.Context, pathID, leaf string) ([]api.FileInf
"name": []string{leaf},
"sort": []string{"id"},
"order": []string{"desc"},
"limit": []string{"1"},
},
}
var info api.ReadMetadataResponse
Expand Down

0 comments on commit 5cb07b2

Please sign in to comment.