MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / indexableFilesQuery

Method indexableFilesQuery

inventory/file.go:345–352  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

343}
344
345func (f *fileClient) indexableFilesQuery() *ent.FileQuery {
346 return f.client.File.Query().Where(
347 file.Type(int(types.FileTypeFile)),
348 file.NameNEQ(""),
349 file.SizeGT(0),
350 file.FileChildrenNotNil(),
351 ).Order(file.ByID())
352}
353
354func (f *fileClient) CountEntityByTimeRange(ctx context.Context, start, end *time.Time) (int, error) {
355 if start == nil || end == nil {

Callers 2

CountIndexableFilesMethod · 0.95
ListIndexableFilesMethod · 0.95

Calls 8

TypeFunction · 0.92
NameNEQFunction · 0.92
SizeGTFunction · 0.92
FileChildrenNotNilFunction · 0.92
ByIDFunction · 0.92
OrderMethod · 0.65
WhereMethod · 0.45
QueryMethod · 0.45

Tested by

no test coverage detected