Can we somehow rename the file that is being downloaded using puppeteer?
问题 I am downloading a file through puppeteer into my directory. I need to upload this file to an s3 bucket so I need to pick up the file name. But the problem is, this file name has a time stamp that changes every time so I can't keep a hard coded name. So is there a way around this to get a constant name every time (even if the old file is replaced), or how to rename the file being downloaded? I thought of using node's fs.rename() function but that would again require the current file name. I