MCPcopy
hub / github.com/cloudreve/cloudreve / ListIndexableFiles

Method ListIndexableFiles

inventory/file.go:337–343  ·  view source on GitHub ↗
(ctx context.Context, afterID, limit int)

Source from the content-addressed store, hash-verified

335}
336
337func (f *fileClient) ListIndexableFiles(ctx context.Context, afterID, limit int) ([]*ent.File, error) {
338 q := f.indexableFilesQuery()
339 if afterID > 0 {
340 q = q.Where(file.IDGT(afterID))
341 }
342 return q.Limit(limit).All(ctx)
343}
344
345func (f *fileClient) indexableFilesQuery() *ent.FileQuery {
346 return f.client.File.Query().Where(

Callers

nothing calls this directly

Calls 5

indexableFilesQueryMethod · 0.95
IDGTFunction · 0.92
LimitMethod · 0.65
WhereMethod · 0.45
AllMethod · 0.45

Tested by

no test coverage detected