Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
pull/435/head
zouap 3 years ago
parent
commit
c339cfdc70
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      routers/repo/dir.go

+ 1
- 1
routers/repo/dir.go View File

@@ -70,7 +70,7 @@ func DeleteAllUnzipFile(attachment *models.Attachment, parentDir string) {
log.Info("fileName=" + fileInfo.FileName)
log.Info("parentDir=" + fileInfo.ParenDir)
if fileInfo.IsDir {
DeleteAllUnzipFile(attachment, fileInfo.FileName)
DeleteAllUnzipFile(attachment, fileInfo.ParenDir)
} else {
absolutepath := path.Join(attachment.RelativePath()+attachment.UUID, fileInfo.ParenDir)
log.Info("absolutepath=" + absolutepath)


Loading…
Cancel
Save