Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temporarily disable tmp-cdx creation #499

Merged
merged 1 commit into from Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/util/recorder.ts
Expand Up @@ -130,7 +130,7 @@ export class Recorder {

fs.mkdirSync(this.tempdir, { recursive: true });
fs.mkdirSync(this.archivesDir, { recursive: true });
fs.mkdirSync(this.tempCdxDir, { recursive: true });
// fs.mkdirSync(this.tempCdxDir, { recursive: true });

const prefix =
process.env.WARC_PREFIX || crawler.params.warcPrefix || "rec";
Expand All @@ -141,7 +141,7 @@ export class Recorder {

this.writer = new WARCWriter({
archivesDir: this.archivesDir,
tempCdxDir: this.tempCdxDir,
// tempCdxDir: this.tempCdxDir,
filenameTemplate,
rolloverSize: crawler.params.rolloverSize,
gzip: this.gzip,
Expand Down
4 changes: 2 additions & 2 deletions src/util/warcwriter.ts
Expand Up @@ -13,7 +13,7 @@ const DEFAULT_ROLLOVER_SIZE = 1_000_000_000;
// =================================================================
export class WARCWriter implements IndexerOffsetLength {
archivesDir: string;
tempCdxDir: string;
tempCdxDir?: string;
filenameTemplate: string;
filename?: string;
gzip: boolean;
Expand All @@ -39,7 +39,7 @@ export class WARCWriter implements IndexerOffsetLength {
logDetails,
}: {
archivesDir: string;
tempCdxDir: string;
tempCdxDir?: string;
filenameTemplate: string;
rolloverSize?: number;
gzip: boolean;
Expand Down