"io"
"log"
"os"
- "path"
"path/filepath"
"strings"
)
}
var pth string
for _, fi := range fis {
- pth, err = filepath.Rel(Cwd, path.Join(root, fi.Name()))
- if err != nil {
- panic(err)
- }
+ pth = cwdMustRel(root, fi.Name())
switch what {
case CleanupLog:
if strings.HasSuffix(fi.Name(), LogSuffix) {
}
var pth string
for _, fi := range fis {
- pth, err = filepath.Rel(Cwd, path.Join(root, fi.Name()))
- if err != nil {
- panic(err)
- }
+ pth = cwdMustRel(root, fi.Name())
if fi.IsDir() {
if fi.Name() == RedoDir {
if what == CleanupFull {