修正格式。
Signed-off-by: rick.chan <cy@haoan119.com>
This commit is contained in:
parent
e42d439efc
commit
9c1cb4074f
@ -42,13 +42,13 @@ func IsPathExist(path string) bool {
|
||||
|
||||
```go
|
||||
func isFileExist(filename string) bool {
|
||||
info, e := os.Stat(filename)
|
||||
info, e := os.Stat(filename)
|
||||
|
||||
if e == nil {
|
||||
return !info.IsDir()
|
||||
} else {
|
||||
return os.IsExist(e)
|
||||
}
|
||||
if e == nil {
|
||||
return !info.IsDir()
|
||||
} else {
|
||||
return os.IsExist(e)
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user