dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit f4e7dd86413c3b36462576490a1a4b716483216f
parent 85cb0a5bdd18a59e07fef2983e57b878a5cbbf7f
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Tue, 31 Jan 2023 02:08:30 -0800

ignore mkdir error

Diffstat:
Mpkg/web/handlers/handlers.go | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/pkg/web/handlers/handlers.go b/pkg/web/handlers/handlers.go @@ -4381,9 +4381,7 @@ func FileDropTmpInitHandler(c echo.Context) error { return c.Redirect(http.StatusFound, "/") } - if err := os.Mkdir(filepath.Join(config.Global.ProjectFiledropPath(), filedropUUID), 0755); err != nil { - logrus.Error(err) - } + _ = os.Mkdir(filepath.Join(config.Global.ProjectFiledropPath(), filedropUUID), 0755) metadataPath := filepath.Join(config.Global.ProjectFiledropPath(), filedropUUID, "metadata") fileName := c.Request().PostFormValue("fileName")