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

pull/1/head
ClemDee 6 years ago
parent dd62533467
commit ba95ad6bf5

@ -1361,6 +1361,7 @@ define([
}); });
cb(); cb();
}; };
if (paths.some(function (p) { return manager.comparePath(newPath, p) })) { return void cb(); }
manager.move(paths, newPath, newCb, copy); manager.move(paths, newPath, newCb, copy);
}; };
// Delete paths from the drive and/or shared folders (without moving them to the trash) // Delete paths from the drive and/or shared folders (without moving them to the trash)

Loading…
Cancel
Save