Fix static file change detection on Windows.

Fixed windows uses different filepath separator. The filepath.ToSlash
shouldn't be used, because it can cause errors in filepath suffix and prefix
testing since "c:\a" isn't a prefix of "c:/a/b/c".
This commit is contained in:
Egon Elbre
2013-12-15 16:31:29 +02:00
committed by spf13
parent 065928fcf0
commit e46148f948
2 changed files with 10 additions and 6 deletions

View File

@@ -161,7 +161,7 @@ func (c *Config) GetAbsPath(name string) string {
return name
}
return filepath.ToSlash(filepath.Join(c.GetPath(), name))
return filepath.Join(c.GetPath(), name)
}
func (c *Config) findConfigFile(configFileName string) (string, error) {