Skip to content

Getting cp: dest is not a directory (too many sources) on copying folders #124

@shrijeetDeshmukh

Description

@shrijeetDeshmukh

Bug Report

Getting below error message when trying to upgrade cordova-browser to 7 version
cp: dest is not a directory (too many sources)

Problem

Hello Team,
Folder is not getting copied from plugin folder to platform www folder.
Below is the error I'm getting,
cp: dest is not a directory (too many sources) cp: dest is not a directory (too many sources) cp: dest is not a directory (too many sources) cp: dest is not a directory (too many sources) cp: dest is not a directory (too many sources) cp: dest is not a directory (too many sources)

Below are the node modules which needs to copy to the destination but its not working after the upgrade
<platform name="browser"> <js-module name="mfp" src="src/browser/bootstrap.js"> <runs /> </js-module> <asset src="www/worklight" target="plugins/cordova-plugin-mfp/worklight" /> <asset src="src/browser/ibmmfpf.js" target="plugins/cordova-plugin-mfp/worklight/ibmmfpf.js" /> <asset src="typings" target="plugins/cordova-plugin-mfp/worklight/typings" /> <asset src="node_modules/express" target="plugins/cordova-plugin-mfp/worklight/node_modules/express" /> <asset src="node_modules/request" target="plugins/cordova-plugin-mfp/worklight/node_modules/request" /> <asset src="node_modules/jssha" target="plugins/cordova-plugin-mfp/worklight/node_modules/jssha" /> <asset src="node_modules/promiz" target="plugins/cordova-plugin-mfp/worklight/node_modules/promiz" /> <asset src="node_modules/sjcl" target="plugins/cordova-plugin-mfp/worklight/node_modules/sjcl" /> <asset src="src/browser/proxy.js" target="plugins/cordova-plugin-mfp/worklight/proxy.js" /> </platform>

What is expected to happen?

It should copy all the mentioned folders to destination folder

What does actually happen?

Its not copying the folders hence some functionalities are not working in latest browser platform

Information

This issue is probably happening because the cordova-browser 7 now has shelljs version 0.8.5.

Command or Code

Steps to reproduce the issue
cordova create helloworld
cd helloworld
cordova plugin add cordova-plugin-mfp
cordova platform add browser@7

Environment, Platform, Device

Installed platforms:
browser 7.0.0

Version information

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions