| skipped 633 lines |
634 | 634 | | base = filepath.Base(raw) |
635 | 635 | | } |
636 | 636 | | |
637 | | - | if strings.Count(raw, "/") > 2 { |
638 | | - | out = raw[strings.LastIndex(raw, "/")+1:] |
| 637 | + | if strings.Count(base, "/") > 2 { |
| 638 | + | base = base[strings.LastIndex(base, "/")+1:] |
639 | 639 | | } |
640 | 640 | | |
641 | 641 | | out = strings.ReplaceAll(base, "/", "_") |
642 | 642 | | out = strings.ReplaceAll(out, ":", "_") |
| 643 | + | // DebugF("CleanPath: %s -- %s", raw, out) |
643 | 644 | | return out |
644 | 645 | | } |
645 | 646 | | |
| skipped 255 lines |