fixed upload index

This commit is contained in:
zsfelfoldi 2015-06-02 16:55:26 +02:00
parent bca8ec1bde
commit a2de3ad8a4

View file

@ -292,8 +292,6 @@ func (self *Api) Upload(lpath, index string) (string, error) {
return "", errors[i]
}
entry.Path = regularSlashes(entry.Path[start:])
trie.addEntry(entry)
if entry.Path == index {
ientry := &manifestTrieEntry{
Path: "",
@ -302,6 +300,7 @@ func (self *Api) Upload(lpath, index string) (string, error) {
}
trie.addEntry(ientry)
}
trie.addEntry(entry)
}
err2 := trie.recalcAndStore()