MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / loadRollBackTree

Function loadRollBackTree

agent/app/service/device_clean.go:609–616  ·  view source on GitHub ↗
(fileOp fileUtils.FileOp)

Source from the content-addressed store, hash-verified

607}
608
609func loadRollBackTree(fileOp fileUtils.FileOp) []dto.CleanTree {
610 var treeData []dto.CleanTree
611 treeData = loadTreeWithCheck(treeData, path.Join(global.Dir.BaseDir, rollbackPath, "app"), "rollback_app", fileOp)
612 treeData = loadTreeWithCheck(treeData, path.Join(global.Dir.BaseDir, rollbackPath, "website"), "rollback_website", fileOp)
613 treeData = loadTreeWithCheck(treeData, path.Join(global.Dir.BaseDir, rollbackPath, "database"), "rollback_database", fileOp)
614
615 return treeData
616}
617
618func loadUploadTree(fileOp fileUtils.FileOp) []dto.CleanTree {
619 var treeData []dto.CleanTree

Callers 1

ScanMethod · 0.85

Calls 1

loadTreeWithCheckFunction · 0.85

Tested by

no test coverage detected