Force always /
Fuck windows and its path fuck windows
This commit is contained in:
@@ -206,6 +206,9 @@ func ExpandGLobs(patterns map[string]struct{}) ([]string, error) {
|
|||||||
logger.Debug("Found %d matches for pattern %s", len(matches), pattern)
|
logger.Debug("Found %d matches for pattern %s", len(matches), pattern)
|
||||||
for _, m := range matches {
|
for _, m := range matches {
|
||||||
m = filepath.Join(root, m)
|
m = filepath.Join(root, m)
|
||||||
|
m = filepath.Clean(m)
|
||||||
|
m = strings.ReplaceAll(m, "\\", "/")
|
||||||
|
|
||||||
info, err := os.Stat(m)
|
info, err := os.Stat(m)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Warning("Error getting file info for %s: %v", m, err)
|
logger.Warning("Error getting file info for %s: %v", m, err)
|
||||||
|
Reference in New Issue
Block a user