(path string)
| 157 | } |
| 158 | |
| 159 | func (u *Unpackerr) getPasswordFromPath(path string) string { |
| 160 | start, end := strings.Index(path, "{{"), strings.Index(path, "}}") |
| 161 | |
| 162 | if start == -1 || end == -1 || start > end { |
| 163 | return "" |
| 164 | } |
| 165 | |
| 166 | u.Debugf("Found password in Path: %s", path[start+2:end]) |
| 167 | |
| 168 | return path[start+2 : end] |
| 169 | } |
| 170 | |
| 171 | // checkExtractDone checks if an extracted and imported item needs to be deleted. |
| 172 | // Or if an extraction failed and needs to be restarted. |
no test coverage detected