MCPcopy Index your code
hub / github.com/cloudreve/cloudreve / Root

Method Root

inventory/file.go:1056–1062  ·  view source on GitHub ↗
(ctx context.Context, user *ent.User)

Source from the content-addressed store, hash-verified

1054}
1055
1056func (f *fileClient) Root(ctx context.Context, user *ent.User) (*ent.File, error) {
1057 return f.client.User.
1058 QueryFiles(user).
1059 Where(file.Not(file.HasParent())).
1060 Where(file.Name(RootFolderName)).
1061 First(ctx)
1062}
1063
1064func (f *fileClient) CreateFolder(ctx context.Context, root *ent.File, args *CreateFolderParameters) (*ent.File, error) {
1065 stm := f.client.File.

Callers

nothing calls this directly

Calls 6

NotFunction · 0.92
HasParentFunction · 0.92
NameFunction · 0.92
FirstMethod · 0.45
WhereMethod · 0.45
QueryFilesMethod · 0.45

Tested by

no test coverage detected