var fs = require("fs");
var path = require("path");
var rootdir = __dirname;
console.log(rootdir);

console.log("Running hook: " + path.basename(__filename));

var ncp = require('ncp').ncp;

ncp.limit = 16;
 
var lib_source = path.join(rootdir,'libs');
var lib_dest = path.join(rootdir,'..', '..', 'platforms', 'android', 'libs')

console.log(lib_dest)

ncp(lib_source, lib_dest, function (err) {
 if (err) {
   return console.error(err);
 }
 console.log('lib done!');
});

var tessdata_source = path.join(rootdir,'tessdata');
var tessdata_dest = path.join(rootdir,'..', '..', 'platforms', 'android', 'assets')

console.log(tessdata_dest)

 
ncp(tessdata_source, tessdata_dest, function (err) {
 if (err) {
   return console.error(err);
 }
 console.log('tessdata done!');
});
@@ -322,16 +322,17 @@
  'libs')
+;
 %0A%0Aconsol
@@ -518,16 +518,19 @@
 essdata'
+,''
 );%0Avar t
@@ -607,16 +607,17 @@
 assets')
+;
 %0A%0Aconsol

copy folder instead of files