Browse Source

Use 3 chars for sub directories.

Martin Edenhofer 11 years ago
parent
commit
c7dae8a456
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/models/store.rb

+ 1 - 1
app/models/store.rb

@@ -158,7 +158,7 @@ class Store::File < ApplicationModel
 
     # generate directory
     base = Rails.root.to_s + "/storage/fs/"
-    path = self.md5.scan(/./).join('/')
+    path = self.md5.scan(/.../).join('/')
     location = "#{ base }/#{path}"
 
     # create directory if not exists