Merge pull request #260 from dopessoa/ISSUE-257

Fixes "mkdir /basedir: no such file or directory"
This commit is contained in:
Andrea Spacca 2019-08-24 13:37:10 +02:00 committed by GitHub
commit 8463d4169b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -106,7 +106,7 @@ func (s *LocalStorage) Put(token string, filename string, reader io.Reader, cont
path := filepath.Join(s.basedir, token)
if err = os.Mkdir(path, 0700); err != nil && !os.IsExist(err) {
if err = os.MkdirAll(path, 0700); err != nil && !os.IsExist(err) {
return err
}