Do not move folders if destination is one of the moved folders

pull/1/head
ClemDee 2019-06-25 09:45:30 +02:00
parent dd62533467
commit ba95ad6bf5
1 changed files with 1 additions and 0 deletions

View File

@ -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)