fix(storage): change to mkdirall to avoid error
This commit is contained in:
@@ -60,7 +60,7 @@ func (f FileSvgStorage) Get(id string) (io.ReadCloser, error) {
|
||||
|
||||
func (f FileSvgStorage) CreatePublic(data io.Reader, filetype string) (string, error) {
|
||||
path := filepath.Join(f.basepath, f.publicSubPath)
|
||||
if err := os.Mkdir(path, 0755); err != nil {
|
||||
if err := os.MkdirAll(path, 0755); err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user