(src, dst string)
| 262 | } |
| 263 | |
| 264 | func checkParent(src, dst string) error { |
| 265 | rel, err := filepath.Rel(src, dst) |
| 266 | if err != nil { |
| 267 | return err |
| 268 | } |
| 269 | |
| 270 | rel = filepath.ToSlash(rel) |
| 271 | if !strings.HasPrefix(rel, "../") && rel != ".." && rel != "." { |
| 272 | return fberrors.ErrSourceIsParent |
| 273 | } |
| 274 | |
| 275 | return nil |
| 276 | } |
| 277 | |
| 278 | func addVersionSuffix(source string, afs afero.Fs) string { |
| 279 | counter := 1 |
no outgoing calls
no test coverage detected