MCPcopy Create free account
hub / github.com/VirtualHotBar/NetMount / delMountStorage

Function delMountStorage

src/controller/storage/mount/mount.ts:74–87  ·  view source on GitHub ↗
(mountPath: string)

Source from the content-addressed store, hash-verified

72}
73
74async function delMountStorage(mountPath: string) {
75 if (isMounted(mountPath)) {
76 await unmountStorage(mountPath)
77 }
78
79 nmConfig.mount.lists.forEach((item, index) => {
80 if (item.mountPath === mountPath) {
81 nmConfig.mount.lists.splice(index, 1)
82 }
83 })
84
85 await saveNmConfig()
86 await reupMount()
87}
88
89async function editMountStorage(mountInfo: MountListItem, oldMountPath?: string) {
90 const searchPath = oldMountPath || mountInfo.mountPath

Callers 2

Mount_pageFunction · 0.90
delStorageFunction · 0.90

Calls 4

saveNmConfigFunction · 0.90
isMountedFunction · 0.85
unmountStorageFunction · 0.85
reupMountFunction · 0.85

Tested by

no test coverage detected