diff options
author | clsr <clsr@clsr.net> | 2016-06-18 20:37:46 +0200 |
---|---|---|
committer | clsr <clsr@clsr.net> | 2016-06-18 20:37:46 +0200 |
commit | 0861d561839407ce63ccc56317ea74e52c457381 (patch) | |
tree | 0ee174ecca2a1d56c6051fac81c24a84cf5bf43d /storage.go | |
parent | 92784c2d68acbe65ee6289fb99d345f117bd888e (diff) | |
download | gomf-0861d561839407ce63ccc56317ea74e52c457381.tar.gz gomf-0861d561839407ce63ccc56317ea74e52c457381.zip |
Reduce the length of padding in Storage.idToFolderv0.2.4
Diffstat (limited to 'storage.go')
-rw-r--r-- | storage.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |