MCPcopy Create free account
hub / github.com/SignTools/SignTools / IsAccount

Method IsAccount

src/storage/profile.go:200–207  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

198}
199
200func (p *profile) IsAccount() (bool, error) {
201 if _, err := os.Stat(p.resolvePath(ProfileAccountName)); os.IsNotExist(err) {
202 return false, nil
203 } else if err != nil {
204 return false, err
205 }
206 return true, nil
207}
208
209func (p *profile) GetFiles() ([]fileGetter, error) {
210 isAccount, err := p.IsAccount()

Callers 1

GetFilesMethod · 0.95

Calls 1

StatMethod · 0.65

Tested by

no test coverage detected