(keyword: string)
| 246 | } |
| 247 | |
| 248 | function 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 | |
| 260 | function getFileName(path: string): string { |
| 261 | const pathArr = path.split('/') |
no outgoing calls
no test coverage detected