Przeglądaj źródła

Fixes "mkdir /basedir: no such file or directory" by creating the directory recursively

tags/v1.1.2
Douglas Pessoa 4 lat temu
rodzic
commit
6c73f13fd0
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      server/storage.go

+ 1
- 1
server/storage.go Wyświetl plik

@@ -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
}



Ładowanie…
Anuluj
Zapisz