MCPcopy
hub / github.com/nektos/act / tempNames

Method tempNames

pkg/artifactcache/storage.go:117–130  ·  view source on GitHub ↗
(id uint64)

Source from the content-addressed store, hash-verified

115}
116
117func (s *Storage) tempNames(id uint64) ([]string, error) {
118 dir := s.tempDir(id)
119 files, err := os.ReadDir(dir)
120 if err != nil {
121 return nil, err
122 }
123 var names []string
124 for _, v := range files {
125 if !v.IsDir() {
126 names = append(names, filepath.Join(dir, v.Name()))
127 }
128 }
129 return names, nil
130}

Callers 1

CommitMethod · 0.95

Calls 3

tempDirMethod · 0.95
IsDirMethod · 0.80
NameMethod · 0.80

Tested by

no test coverage detected