Method
Root
(ctx context.Context, user *ent.User)
Source from the content-addressed store, hash-verified
| 1054 | } |
| 1055 | |
| 1056 | func (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 | |
| 1064 | func (f *fileClient) CreateFolder(ctx context.Context, root *ent.File, args *CreateFolderParameters) (*ent.File, error) { |
| 1065 | stm := f.client.File. |
Callers
nothing calls this directly
Tested by
no test coverage detected