MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / IsExist

Method IsExist

cli/pkg/common/fs.go:109–115  ·  view source on GitHub ↗

指定路径是否存在

(filePath string)

Source from the content-addressed store, hash-verified

107
108// 指定路径是否存在
109func (fs *fileOperation) IsExist(filePath string) bool {
110 _, err := os.Stat(filePath)
111 if err != nil {
112 return false
113 }
114 return true
115}
116
117func writeToFile(filePath string, content string, isOverWrite bool) (err error) {
118

Callers 15

newK8sUtilFunction · 0.80
InstallSmartideAgentFunction · 0.80
StartSmartideAgentFunction · 0.80
SaveTempFilesMethod · 0.80
SSHVolumesConfigFunction · 0.80
LoadConfigYamlMethod · 0.80
initFunction · 0.80
connectionFunction · 0.80
update.goFile · 0.80
InitLocalConfigFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected