From f4dfa7752ef68567d43b41ac1d6bc4165b239183 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Tue, 9 Jun 2020 09:28:27 -0500 Subject: [PATCH] Accept ctime in createWriteStream opts --- lib/drives/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/drives/index.js b/lib/drives/index.js index 1b38ac8..08b732c 100644 --- a/lib/drives/index.js +++ b/lib/drives/index.js @@ -701,7 +701,7 @@ class DriveManager extends EventEmitter { if (!path) throw new Error('A readFile request must specify a path.') const drive = this.driveForSession(id) - const stream = drive.createWriteStream(path, { mode: opts.mode, uid: opts.uid, gid: opts.gid, metadata: opts.metadata }) + const stream = drive.createWriteStream(path, { mode: opts.mode, uid: opts.uid, gid: opts.gid, ctime: opts.ctime, metadata: opts.metadata }) return onstream(resolve, reject, stream) })