Use 3 chars for sub directories.
This commit is contained in:
parent
ec1f3afa73
commit
c7dae8a456
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue