From ba95ad6bf5e94d787b00707b61b369c0b97faffd Mon Sep 17 00:00:00 2001 From: ClemDee Date: Tue, 25 Jun 2019 09:45:30 +0200 Subject: [PATCH] Do not move folders if destination is one of the moved folders --- www/drive/inner.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/drive/inner.js b/www/drive/inner.js index fb2b0bcd9..7224d729d 100644 --- a/www/drive/inner.js +++ b/www/drive/inner.js @@ -1361,6 +1361,7 @@ define([ }); cb(); }; + if (paths.some(function (p) { return manager.comparePath(newPath, p) })) { return void cb(); } manager.move(paths, newPath, newCb, copy); }; // Delete paths from the drive and/or shared folders (without moving them to the trash)