Skip to content

Commit cab2653

Browse files
committed
Add CONST_FILE_LIST to download utilities and integrate it into cloud file retrieval process.
1 parent d635041 commit cab2653

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/download/utils.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,8 @@ export async function retrieveTiDBMDsFromZip(
253253
}
254254
}
255255

256+
const CONST_FILE_LIST = ["/_docHome.md"];
257+
256258
export async function retrieveCloudMDsFromZip(
257259
metaInfo,
258260
destDir,
@@ -279,7 +281,10 @@ export async function retrieveCloudMDsFromZip(
279281
entry.entryName.endsWith(`/TOC-tidb-cloud.md`)
280282
);
281283

282-
const cloudFileList = getFileListFromToc(cloudTocZipEntry.getData());
284+
const cloudFileList = [
285+
...CONST_FILE_LIST,
286+
...getFileListFromToc(cloudTocZipEntry.getData()),
287+
];
283288

284289
// console.log(cloudFileList);
285290

0 commit comments

Comments
 (0)