@@ -250,7 +250,7 @@ func syncUserSettings(host string, back bool) error {
250
250
if err != nil {
251
251
return err
252
252
}
253
- const remoteSettingsDir = ".local/share/code-server/User"
253
+ const remoteSettingsDir = ".local/share/code-server/User/ "
254
254
255
255
var (
256
256
src = localConfDir + "/"
@@ -270,7 +270,7 @@ func syncExtensions(host string, back bool) error {
270
270
if err != nil {
271
271
return err
272
272
}
273
- const remoteExtensionsDir = ".local/share/code-server/extensions"
273
+ const remoteExtensionsDir = ".local/share/code-server/extensions/ "
274
274
275
275
var (
276
276
src = localExtensionsDir + "/"
@@ -289,13 +289,10 @@ func rsync(src string, dest string, excludePaths ...string) error {
289
289
excludeFlags [i ] = "--exclude=" + path
290
290
}
291
291
292
- cmd := exec .Command ("rsync" , append (excludeFlags , "-az" ,
293
- "--progress" ,
294
- "--stats" ,
295
- // Without --size-only, synchronizing back always results in a
296
- // full copy. For some reason, rsync with --times doesn't actually
297
- // change modification times on the destination.
298
- "--size-only" ,
292
+ cmd := exec .Command ("rsync" , append (excludeFlags , "-azvr" ,
293
+ // Only update newer directories, and sync times
294
+ // to keep things simple.
295
+ "-u" , "--times" ,
299
296
"--copy-unsafe-links" ,
300
297
src , dest ,
301
298
)... ,
@@ -314,9 +311,9 @@ func configDir() (string, error) {
314
311
var path string
315
312
switch runtime .GOOS {
316
313
case "linux" :
317
- path = os .ExpandEnv ("$HOME/.config/Code/User" )
314
+ path = os .ExpandEnv ("$HOME/.config/Code/User/ " )
318
315
case "darwin" :
319
- path = os .ExpandEnv ("$HOME/Library/Application Support/Code/User" )
316
+ path = os .ExpandEnv ("$HOME/Library/Application Support/Code/User/ " )
320
317
default :
321
318
return "" , xerrors .Errorf ("unsupported platform: %s" , runtime .GOOS )
322
319
}
@@ -327,7 +324,7 @@ func extensionsDir() (string, error) {
327
324
var path string
328
325
switch runtime .GOOS {
329
326
case "linux" , "darwin" :
330
- path = os .ExpandEnv ("$HOME/.vscode/extensions" )
327
+ path = os .ExpandEnv ("$HOME/.vscode/extensions/ " )
331
328
default :
332
329
return "" , xerrors .Errorf ("unsupported platform: %s" , runtime .GOOS )
333
330
}
0 commit comments