From 0861d561839407ce63ccc56317ea74e52c457381 Mon Sep 17 00:00:00 2001 From: clsr Date: Sat, 18 Jun 2016 20:37:46 +0200 Subject: Reduce the length of padding in Storage.idToFolder --- storage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'storage.go') diff --git a/storage.go b/storage.go index 7c674fc..f33dc34 100644 --- a/storage.go +++ b/storage.go @@ -153,7 +153,7 @@ func (s *Storage) randomId() string { } func (s *Storage) idToFolder(subfolder, id string) string { - for len(id) < 4 { + for len(id) < 3 { id = "_" + id } return path.Join(s.Folder, subfolder, id[0:1], id[1:3], id) -- cgit