(path string)
| 178 | } |
| 179 | } |
| 180 | func IsMounted(path string) bool { |
| 181 | mounted, _ := mountinfo.Mounted(path) |
| 182 | if mounted { |
| 183 | return true |
| 184 | } |
| 185 | connections := MyService.Connections().GetConnectionsList() |
| 186 | for _, v := range connections { |
| 187 | if v.MountPoint == path { |
| 188 | return true |
| 189 | } |
| 190 | } |
| 191 | return false |
| 192 | } |
no test coverage detected