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

Function loadUploadTree

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

Source from the content-addressed store, hash-verified

616}
617
618func loadUploadTree(fileOp fileUtils.FileOp) []dto.CleanTree {
619 var treeData []dto.CleanTree
620 treeData = loadTreeWithCheck(treeData, path.Join(global.Dir.BaseDir, uploadPath, "app"), "upload_app", fileOp)
621 treeData = loadTreeWithCheck(treeData, path.Join(global.Dir.BaseDir, uploadPath, "website"), "upload_website", fileOp)
622 treeData = loadTreeWithCheck(treeData, path.Join(global.Dir.BaseDir, uploadPath, "database"), "upload_database", fileOp)
623
624 path5 := path.Join(global.Dir.BaseDir, uploadPath)
625 uploadTreeData := loadTreeWithAllFile(true, path5, "upload", path5, fileOp)
626 treeData = append(treeData, uploadTreeData...)
627
628 return treeData
629}
630
631func loadDownloadTree(fileOp fileUtils.FileOp) []dto.CleanTree {
632 var treeData []dto.CleanTree

Callers 1

ScanMethod · 0.85

Calls 2

loadTreeWithCheckFunction · 0.85
loadTreeWithAllFileFunction · 0.85

Tested by

no test coverage detected