MCPcopy
hub / github.com/GopeedLab/gopeed / SingleFilepath

Method SingleFilepath

internal/fetcher/fetcher.go:58–66  ·  view source on GitHub ↗

SingleFilepath return the single file path of the meta info.

()

Source from the content-addressed store, hash-verified

56
57// SingleFilepath return the single file path of the meta info.
58func (m *FetcherMeta) SingleFilepath() string {
59 // check if rename file
60 file := m.Res.Files[0]
61 fileName := file.Name
62 if m.Opts.Name != "" {
63 fileName = m.Opts.Name
64 }
65 return path.Join(m.Opts.Path, file.Path, fileName)
66}
67
68// RootDirPath return the root dir path of the task file.
69func (m *FetcherMeta) RootDirPath() string {

Callers 10

executeScriptAtPathMethod · 0.80
doDeleteMethod · 0.80
watchMethod · 0.80
doStartMethod · 0.80
createDownloadDoneTaskFunction · 0.80
StartMethod · 0.80
doStartMethod · 0.80
downloadLoopMethod · 0.80

Calls

no outgoing calls

Tested by 1

createDownloadDoneTaskFunction · 0.64