fix(storage): change to mkdirall to avoid error

This commit is contained in:
2026-02-09 11:08:48 +01:00
parent 343abe9bb5
commit de3ba44093

View File

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