MCPcopy Index your code
hub / github.com/GopeedLab/gopeed / FolderPath

Method FolderPath

internal/fetcher/fetcher.go:48–55  ·  view source on GitHub ↗

FolderPath return the folder path of the meta info.

()

Source from the content-addressed store, hash-verified

46
47// FolderPath return the folder path of the meta info.
48func (m *FetcherMeta) FolderPath() string {
49 // check if rename folder
50 folder := m.Res.Name
51 if m.Opts.Name != "" {
52 folder = m.Opts.Name
53 }
54 return path.Join(m.Opts.Path, folder)
55}
56
57// SingleFilepath return the single file path of the meta info.
58func (m *FetcherMeta) SingleFilepath() string {

Callers 5

RootDirPathMethod · 0.95
executeScriptAtPathMethod · 0.80
doDeleteMethod · 0.80
doStartMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected