I can select two folders as below.
<input type="file" id="file-input-one" webkitdirectory="" directory="">
<input type="file" id="file-input-two" webkitdirectory="" directory="">
I want to copy/move all files from 1st folder to 2nd. I can read files inside first directory as below. I can also get the full path of the second directory as well. How do I copy files?
jQuery(function($) {
$('#file-input-one').on('change', function() {
$.each(this.files, function(i, file) {
//move each file to second folder.
}
})
})