apache / apache/cordova-browser
Getting cp: dest is not a directory (too many sources) on copying folders
- Dominant language
- JavaScript
- Stars
- 174
- Forks
- 86
- Avg merge
- 8h 15m
- Merged PRs (30d)
- 6
Description
# 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
`
`
### 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
- [x] I searched for existing GitHub issues
- [x] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above
Contributor guide
Research direction
Reproduce the problem with the listed cordova create, plugin add, and browser@7 commands, using the plugin configuration shown in the report. Inspect the browser platform's asset-copying entry point and the shelljs 0.8.5 behavior around copying multiple source folders. Done means all listed assets are copied into the platform www destination without the “too many sources” error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nodejs
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100