We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a28044b commit f0d659eCopy full SHA for f0d659e
samples/drive/download.js
@@ -46,7 +46,7 @@ async function runSample(fileId) {
46
.get({fileId, alt: 'media'}, {responseType: 'stream'})
47
.then(res => {
48
return new Promise((resolve, reject) => {
49
- const filePath = path.join(os.tmpdir(), uuid.randomUUID());
+ const filePath = path.join(os.tmpdir(), uuid);
50
console.log(`writing to ${filePath}`);
51
const dest = fs.createWriteStream(filePath);
52
let progress = 0;
0 commit comments