MCPcopy Index your code
hub / github.com/TruthHun/BookStack / DelFiles

Method DelFiles

models/store/local.go:51–56  ·  view source on GitHub ↗

从OSS中删除文件 @param object 文件对象 @param IsPreview 是否是预览的OSS

(object ...string)

Source from the content-addressed store, hash-verified

49//@param object 文件对象
50//@param IsPreview 是否是预览的OSS
51func (this *Local) DelFiles(object ...string) error {
52 for _, file := range object {
53 os.Remove(strings.TrimLeft(file, "/"))
54 }
55 return nil
56}
57
58//删除文件夹
59func (this *Local) DelFromFolder(folder string) (err error) {

Callers 4

QrcodeMethod · 0.80
UploadCoverMethod · 0.80
UpdateCateIconMethod · 0.80
DelMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected