[Agent][Operator] - bug fix

This commit is contained in:
zeaslity
2024-05-08 11:31:24 +08:00
parent e56b9bd65c
commit bd2a50bbae
3 changed files with 32 additions and 27 deletions

View File

@@ -120,8 +120,8 @@ func WordSpaceCompletion(source string, totalLength int) string {
return source
}
// IsFileOrDir 如果是目录则返回true是文件则返回false
func IsFileOrDir(path string) bool {
// IsDirOrFile 如果是目录则返回true是文件则返回false
func IsDirOrFile(path string) bool {
info, err := os.Stat(path)
if err != nil {
return false