Skip to content

Commit a28044b

Browse files
committed
remove uuid
1 parent f775898 commit a28044b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/drive/download.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ async function runSample(fileId) {
4646
.get({fileId, alt: 'media'}, {responseType: 'stream'})
4747
.then(res => {
4848
return new Promise((resolve, reject) => {
49-
const filePath = path.join(os.tmpdir(), uuid.v4());
49+
const filePath = path.join(os.tmpdir(), uuid.randomUUID());
5050
console.log(`writing to ${filePath}`);
5151
const dest = fs.createWriteStream(filePath);
5252
let progress = 0;

0 commit comments

Comments
 (0)