(path: string)
| 263 | } |
| 264 | |
| 265 | function formatPathRclone(path: string): string { |
| 266 | path = formatPath(path) |
| 267 | if (path.startsWith('/')) { |
| 268 | path = path.substring(1) |
| 269 | } |
| 270 | // 始终移除末尾斜杠 |
| 271 | if (path.endsWith('/')) { |
| 272 | path = path.substring(0, path.length - 1) |
| 273 | } |
| 274 | return path |
| 275 | } |
| 276 | |
| 277 | //获取文件列表 |
| 278 | async function getFileList(storageName: string, path: string): Promise<FileInfo[] | undefined> { |
no test coverage detected