mirror of
				https://github.com/packwiz/packwiz.git
				synced 2025-10-31 18:44:33 +01:00 
			
		
		
		
	Normalise paths to ensure they are compared properly
This commit is contained in:
		| @@ -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() | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user