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