CheckPermission check if the file has permission
(src string)
| 29 | |
| 30 | // CheckPermission check if the file has permission |
| 31 | func CheckPermission(src string) bool { |
| 32 | _, err := os.Stat(src) |
| 33 | |
| 34 | return os.IsPermission(err) |
| 35 | } |
| 36 | |
| 37 | // IsNotExistMkDir create a directory if it does not exist |
| 38 | func IsNotExistMkDir(src string) error { |
no outgoing calls
no test coverage detected