mirror of
https://github.com/vee1e/kubeedge.git
synced 2026-09-01 18:27:38 +00:00
14 lines
195 B
Go
14 lines
195 B
Go
package validation
|
|
|
|
import (
|
|
"os"
|
|
)
|
|
|
|
// FileIsExist check file is exist
|
|
func FileIsExist(path string) bool {
|
|
_, err := os.Stat(path)
|
|
if err == nil {
|
|
return true
|
|
}
|
|
return os.IsExist(err)
|
|
}
|