mirror of
https://github.com/webrecorder/browsertrix-crawler.git
synced 2025-10-19 14:33:17 +00:00
Remove hardcoded /tmp prefix from path (#843)
Fast-follow to #842 to fix a typo
This commit is contained in:
parent
52235ab21e
commit
46a02d12a3
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ async function collectOnlineBehavior(url: string): Promise<FileSources> {
|
|||
const filename = path.basename(new URL(url).pathname);
|
||||
const tmpDir = path.join(
|
||||
os.tmpdir(),
|
||||
`/tmp/behaviors-${crypto.randomBytes(4).toString("hex")}`,
|
||||
`behaviors-${crypto.randomBytes(4).toString("hex")}`,
|
||||
);
|
||||
await fsp.mkdir(tmpDir, { recursive: true });
|
||||
const behaviorFilepath = path.join(tmpDir, filename);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue