Compare commits
1 commit
go20
...
encode-url
Author | SHA1 | Date | |
---|---|---|---|
fb34336e6b |
1 changed files with 12 additions and 0 deletions
|
@ -900,10 +900,22 @@ func prepareKeyString (_context *context, _namespace string, _fingerprint string
|
|||
}
|
||||
|
||||
|
||||
func pathEscape (_path string) (final string) {
|
||||
fragments := strings.Split(_path, "/")
|
||||
for i, fragment := range fragments {
|
||||
final = final + url.PathEscape(fragment)
|
||||
if i != len(fragments) - 1 {
|
||||
final = final + "/"
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
func walkPath (_context *context, _pathResolved string, _pathInArchive string, _name string, _recursed map[string]uint, _recurse bool, _statusPerhaps uint) (os.FileInfo, error) {
|
||||
|
||||
_pathInArchive = pathEscape(_pathInArchive)
|
||||
|
||||
if _recursed == nil {
|
||||
_recursed = make (map[string]uint, 128)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue