MCPcopy Create free account
hub / github.com/Mrs4s/six-cli / GetRootFile

Method GetRootFile

six_cloud/user.go:12–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10)
11
12func (user *SixUser) GetRootFile() *SixFile {
13 return &SixFile{
14 Identity: "root",
15 UserIdentity: user.Identity,
16 Path: "/",
17 Name: "root",
18 IsDir: true,
19 owner: user,
20 }
21}
22
23func (user *SixUser) RefreshUserInfo() {
24 res := gjson.Parse(user.Client.PostJsonObject("https://api.2dland.cn/v3/user/info", models.B{"ts": time.Now().Unix()}))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected