Match the names used in other blob implementations

This commit is contained in:
Matt Joiner 2015-10-01 15:41:30 +10:00
parent d8a43e1b03
commit afece1f67f
1 changed files with 2 additions and 2 deletions

View File

@ -87,13 +87,13 @@ func (me *store) initCompleted() {
} }
func (me *store) completePieceDirPath() string { func (me *store) completePieceDirPath() string {
return filepath.Join(me.baseDir, "complete") return filepath.Join(me.baseDir, "completed")
} }
func (me *store) path(p metainfo.Piece, completed bool) string { func (me *store) path(p metainfo.Piece, completed bool) string {
return filepath.Join(me.baseDir, func() string { return filepath.Join(me.baseDir, func() string {
if completed { if completed {
return "complete" return "completed"
} else { } else {
return "incomplete" return "incomplete"
} }