Skip to content

Commit ebcaf2e

Browse files
committed
Add: moved drivewatcher here
1 parent e31c04c commit ebcaf2e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/clients/drive.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ module.exports = class DriveClient {
128128
return mirrorFolder(dir, { fs: drive, name: '/' }, {
129129
watch: true,
130130
dereference: true,
131-
keepExisting: true,
131+
// When going from fs -> drive, it should overwrite.
132+
keepExisting: false,
132133
ignore: (file, stat, cb) => {
133134
if (shouldIgnore(file)) return process.nextTick(cb, null, true)
134135
return process.nextTick(cb, null, false)

0 commit comments

Comments
 (0)