code: function copyFile(srcPath: string, destPath: string) {
    if (fs.lstatSync(srcPath).isDirectory()) {
      if (!fs.existsSync(destPath)) {
        fs.mkdirSync(destPath);
      }
      // Not recursive
      return;
    }
  
    return new Promise((resolve, reject) => {
      copyBinaryFile(srcPath, destPath, err => {
        if (err) {
          reject(err);
        }
        resolve(destPath);
      });
    });
  }
docs: Copy a file to given destination.