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

Method down2local

models/book.go:992–997  ·  view source on GitHub ↗

把书籍相关附件下载到本地

(srcDir, desDir string)

Source from the content-addressed store, hash-verified

990
991// 把书籍相关附件下载到本地
992func (m *Book) down2local(srcDir, desDir string) (err error) {
993 if utils.StoreType == utils.StoreLocal {
994 return store.ModelStoreLocal.CopyDir(srcDir, desDir)
995 }
996 return store.ModelStoreOss.Down2local(srcDir, desDir)
997}
998
999func (m *Book) zip(dir, zipFile string) (err error) {
1000 // zip 压缩

Callers 1

Export2MarkdownMethod · 0.95

Calls 2

Down2localMethod · 0.80
CopyDirMethod · 0.45

Tested by

no test coverage detected