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

Method GetEntityByID

inventory/file.go:173–173  ·  view source on GitHub ↗

GetEntityByID returns an entity by its ID.

(ctx context.Context, id int)

Source from the content-addressed store, hash-verified

171 GetEntitiesByIDs(ctx context.Context, ids []int, page int) ([]*ent.Entity, int, error)
172 // GetEntityByID returns an entity by its ID.
173 GetEntityByID(ctx context.Context, id int) (*ent.Entity, error)
174 // Rename renames a file
175 Rename(ctx context.Context, original *ent.File, newName string) (*ent.File, error)
176 // SetParent sets parent of group of files

Callers 2

GetMethod · 0.65
UrlMethod · 0.65

Implementers 1

fileClientinventory/file.go

Calls

no outgoing calls

Tested by

no test coverage detected