mirror of
https://github.com/keven1024/015.git
synced 2026-05-26 15:13:30 +00:00
refactor(backend): update upload directory name from 'upload' to 'uploads' for consistency
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -28,5 +28,5 @@ logs
|
||||
/front/public/swe-worker*
|
||||
|
||||
# backend
|
||||
**/upload/**
|
||||
**/uploads/**
|
||||
**/tmp/**
|
||||
|
||||
@@ -13,7 +13,7 @@ func GetUploadDirPath() (string, error) {
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
finalPath := filepath.Join(basepath, "upload")
|
||||
finalPath := filepath.Join(basepath, "uploads")
|
||||
if err := os.MkdirAll(finalPath, 0755); err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user