(storageList: StorageList[])
| 96 | } |
| 97 | |
| 98 | function filterHideStorage(storageList: StorageList[]) { |
| 99 | //过滤隐藏的存储 |
| 100 | const data: StorageList[] = [] |
| 101 | for (const item of storageList) { |
| 102 | if (!item.hide) data.push(item) |
| 103 | } |
| 104 | return data |
| 105 | } |
| 106 | |
| 107 | //仅rclone |
| 108 | async function getStorageSpace(name: string): Promise<StorageSpace> { |
no outgoing calls
no test coverage detected