MCPcopy
hub / github.com/IceWhaleTech/CasaOS / IsMounted

Function IsMounted

service/file.go:180–192  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

178 }
179}
180func 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}

Callers 5

DirPathFunction · 0.92
RenamePathFunction · 0.92
PostOperateFileOrDirFunction · 0.92
DeleteFileFunction · 0.92
DeleteSambaConnectionsFunction · 0.92

Calls 2

GetConnectionsListMethod · 0.65
ConnectionsMethod · 0.65

Tested by

no test coverage detected