From a6320bbad37846b6d7a6ae4e74f7c6ed03c47bda Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Mon, 15 Feb 2016 16:43:59 +0000 Subject: [PATCH] Fix delete command to wait until all finished - fixes missing deletes. This also could affect deletes at the end of the sync command. --- fs/operations.go | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/operations.go b/fs/operations.go index d8143178f..b957e2d7a 100644 --- a/fs/operations.go +++ b/fs/operations.go @@ -906,6 +906,7 @@ func Delete(f Fs) error { delete <- o }) close(delete) + wg.Wait() return err }