MCPcopy
hub / github.com/wavetermdev/waveterm / GetAppDir

Function GetAppDir

pkg/waveappstore/waveappstore.go:80–87  ·  view source on GitHub ↗
(appId string)

Source from the content-addressed store, hash-verified

78}
79
80func GetAppDir(appId string) (string, error) {
81 if err := ValidateAppId(appId); err != nil {
82 return "", err
83 }
84 appNS, appName, _ := ParseAppId(appId)
85 homeDir := wavebase.GetHomeDir()
86 return filepath.Join(homeDir, "waveapps", appNS, appName), nil
87}
88
89func copyDir(src, dst string) error {
90 if err := os.RemoveAll(dst); err != nil && !os.IsNotExist(err) {

Callers 15

buildAndRunMethod · 0.92
StartMethod · 0.92
PublishDraftFunction · 0.85
RevertDraftFunction · 0.85
MakeDraftFromLocalFunction · 0.85
DeleteAppFunction · 0.85
WriteAppFileFunction · 0.85
ReadAppFileFunction · 0.85
DeleteAppFileFunction · 0.85
ReplaceInAppFileFunction · 0.85
ReplaceInAppFilePartialFunction · 0.85
RenameAppFileFunction · 0.85

Calls 3

GetHomeDirFunction · 0.92
ValidateAppIdFunction · 0.85
ParseAppIdFunction · 0.85

Tested by

no test coverage detected