|
@@ -152,8 +152,10 @@
|
|
|
url: "../../system/file_system/listDir",
|
|
|
data: {dir: operationConfig.dest},
|
|
|
success: function(filelist){
|
|
|
- //Check fod duplication
|
|
|
+ //Check for duplication
|
|
|
var duplicateFound = false;
|
|
|
+
|
|
|
+ /*
|
|
|
mainloop:
|
|
|
for (var i = 0; i < filelist.length; i++){
|
|
|
var desktopFile = filelist[i];
|
|
@@ -166,6 +168,11 @@ mainloop:
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
+ */
|
|
|
+
|
|
|
+ duplicateFound = filelist.some(function(file){
|
|
|
+ return operationConfig.src.includes(file);
|
|
|
+ });
|
|
|
|
|
|
if (duplicateFound){
|
|
|
//Duplication found.
|