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

Function searchStorage

src/controller/storage/storage.ts:248–258  ·  view source on GitHub ↗
(keyword: string)

Source from the content-addressed store, hash-verified

246}
247
248function searchStorage(keyword: string): StorageList | undefined {
249 for (const storage of rcloneInfo.storageList) {
250 if (
251 storage.name === keyword ||
252 (storage.framework === 'openlist' && storage.other?.openlist?.driverPath === keyword)
253 ) {
254 return storage
255 }
256 }
257 return undefined
258}
259
260function getFileName(path: string): string {
261 const pathArr = path.split('/')

Callers 6

AddStorage_pageFunction · 0.90
createStorageFunction · 0.90
delStorageFunction · 0.85
getStorageParamsFunction · 0.85
convertStoragePathFunction · 0.85
getFileListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected