mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-08 22:31:04 +00:00
Normalize asset paths (fixes #103)
This commit is contained in:
parent
e37441627f
commit
17a21102b3
@ -63,7 +63,7 @@ func walkerFor(basePath string) filepath.WalkFunc {
|
|||||||
|
|
||||||
name, _ = filepath.Rel(basePath, name)
|
name, _ = filepath.Rel(basePath, name)
|
||||||
assets = append(assets, asset{
|
assets = append(assets, asset{
|
||||||
Name: name,
|
Name: filepath.ToSlash(name),
|
||||||
HexData: fmt.Sprintf("%x", buf.Bytes()),
|
HexData: fmt.Sprintf("%x", buf.Bytes()),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user