chore: opt page style

This commit is contained in:
engigu
2025-12-25 15:46:38 +08:00
parent cc3a09c1c2
commit bf47048f8f
3 changed files with 11 additions and 4 deletions
+6 -1
View File
@@ -53,6 +53,11 @@ func (fc *FileController) GetFileTree(c *gin.Context) {
return nil
}
// 过滤 __pycache__ 文件夹
if d.IsDir() && d.Name() == "__pycache__" {
return filepath.SkipDir
}
relPath, _ := filepath.Rel(fc.workDir, path)
parts := strings.Split(relPath, string(filepath.Separator))
@@ -234,7 +239,7 @@ func (fc *FileController) RenameFile(c *gin.Context) {
// UploadArchive handles archive file upload and extraction
func (fc *FileController) UploadArchive(c *gin.Context) {
targetDir := c.PostForm("path")
file, err := c.FormFile("file")
if err != nil {
utils.BadRequest(c, "请选择文件")