(folderPath, extension)
| 22014 | } |
| 22015 | // todo: this is weird. i know we evolved our way here but we should step back and clean this up. |
| 22016 | async getFusedFilesInFolder(folderPath, extension) { |
| 22017 | folderPath = Utils.ensureFolderEndsInSlash(folderPath) |
| 22018 | if (this._folderCache[folderPath]) return this._folderCache[folderPath] |
| 22019 | const allFiles = (await this.list(folderPath)).filter(file => file.endsWith(extension)) |
| 22020 | const loadedFiles = [] |
| 22021 | for (let filePath of allFiles) { |
| 22022 | loadedFiles.push(await this.getFusedFile(filePath)) |
| 22023 | } |
| 22024 | this._folderCache[folderPath] = loadedFiles |
| 22025 | return this._folderCache[folderPath] |
| 22026 | } |
| 22027 | } |
| 22028 | window.ScrollFileSystem = ScrollFileSystem |
| 22029 | window.ScrollFile = ScrollFile |
no test coverage detected