mirror of
https://github.com/packwiz/packwiz.git
synced 2025-04-19 13:06:30 +02:00
Normalise paths to ensure they are compared properly
This commit is contained in:
parent
37cc68a9f7
commit
fa5460a187
@ -5,6 +5,7 @@ import (
|
||||
"fmt"
|
||||
"io"
|
||||
"os"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"sort"
|
||||
"strings"
|
||||
@ -261,6 +262,11 @@ func (in *Index) Refresh() error {
|
||||
),
|
||||
)
|
||||
|
||||
// Normalise file paths: updateFile needs to compare path equality
|
||||
for i := range in.Files {
|
||||
in.Files[i].File = path.Clean(in.Files[i].File)
|
||||
}
|
||||
|
||||
for _, v := range fileList {
|
||||
start := time.Now()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user