mirror of
https://github.com/cloudreve/Cloudreve.git
synced 2026-11-13 14:46:07 +00:00
Feat: generate thumbnails for image file
This commit is contained in:
1 parent
a445da5286
commit
0932a10fed
7 files changed
+147
-9
No files matched your search
@@ -75,6 +75,9 @@ func (handler Handler) Delete(ctx context.Context, files []string) ([]string, er
|
||||
retErr = err
|
||||
deleteFailed = append(deleteFailed, value)
|
||||
}
|
||||
|
||||
// 尝试删除文件的缩略图(如果有)
|
||||
_ = os.Remove(value + "._thumb")
|
||||
}
|
||||
|
||||
return deleteFailed, retErr
|
||||
|
||||
Reference in new issue
Block a user