pathExist checks if a path (file or dir) is found at target. Returns true if found, false otherwise.
(path string)
| 208 | // pathExist checks if a path (file or dir) is found at target. |
| 209 | // Returns true if found, false otherwise. |
| 210 | func pathExist(path string) bool { |
| 211 | _, err := os.Stat(path) |
| 212 | if err == nil { |
| 213 | return true |
| 214 | } |
| 215 | return !os.IsNotExist(err) && !os.IsPermission(err) |
| 216 | } |
| 217 | |
| 218 | // S3 Handler. |
| 219 |
no outgoing calls
no test coverage detected