(mountPath: string)
| 72 | } |
| 73 | |
| 74 | async 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 | |
| 89 | async function editMountStorage(mountInfo: MountListItem, oldMountPath?: string) { |
| 90 | const searchPath = oldMountPath || mountInfo.mountPath |
no test coverage detected