SingleFilepath return the single file path of the meta info.
()
| 56 | |
| 57 | // SingleFilepath return the single file path of the meta info. |
| 58 | func (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. |
| 69 | func (m *FetcherMeta) RootDirPath() string { |
no outgoing calls