mirror of
https://github.com/webrecorder/browsertrix-crawler.git
synced 2025-10-19 14:33:17 +00:00
cleanup
This commit is contained in:
parent
50a771cc68
commit
f2fa0f8de0
2 changed files with 2 additions and 4 deletions
|
@ -1430,7 +1430,7 @@ self.__bx_behaviors.selectMainBehavior();
|
|||
|
||||
// remove tmp-cdx, now that it's already been added to the WACZ and/or
|
||||
// copied to indexes
|
||||
await fsp.rm(path.join(this.collDir, "tmp-cdx"), {
|
||||
await fsp.rm(this.tempCdxDir, {
|
||||
recursive: true,
|
||||
force: true,
|
||||
});
|
||||
|
@ -1544,7 +1544,7 @@ self.__bx_behaviors.selectMainBehavior();
|
|||
|
||||
// todo: replace with js-wacz impl eventually
|
||||
async _addCDXJ(wacz: WACZ) {
|
||||
const dirPath = path.join(this.collDir, "tmp-cdx");
|
||||
const dirPath = this.tempCdxDir;
|
||||
|
||||
try {
|
||||
const cdxjFiles = await fsp.readdir(dirPath);
|
||||
|
|
|
@ -55,8 +55,6 @@ export class WARCWriter implements IndexerOffsetLength {
|
|||
}) {
|
||||
this.archivesDir = archivesDir;
|
||||
this.tempCdxDir = tempCdxDir;
|
||||
// for now, disabling CDX
|
||||
this.tempCdxDir = undefined;
|
||||
this.logDetails = logDetails;
|
||||
this.gzip = gzip;
|
||||
this.rolloverSize = rolloverSize;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue