Add and fix some tests
This commit is contained in:
4
main.go
4
main.go
@@ -72,7 +72,7 @@ func removeSuffix(suffix string) filepath.WalkFunc {
|
||||
return err
|
||||
}
|
||||
|
||||
element := newMediaElement(p)
|
||||
element := newMediaElementWithParent(p)
|
||||
fmt.Println(element.Path())
|
||||
|
||||
dir := filepath.Dir(p)
|
||||
@@ -102,7 +102,7 @@ func normalize(p string, f os.DirEntry, err error) error {
|
||||
return err
|
||||
}
|
||||
|
||||
element := newMediaElement(p)
|
||||
element := newMediaElementWithParent(p)
|
||||
newPath := element.Path()
|
||||
if newPath == p {
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user