Comments (5)
Just an opinion, I think what people are looking for is reproducing this behavior:
Or something similar...
from cpy.
@issuehunt has funded $120.00 to this issue.
- Submit pull request via IssueHunt to receive this reward.
- Want to contribute? Chip in to this issue via IssueHunt.
- Checkout the IssueHunt Issue Explorer to see more funded issues.
- Need help from developers? Add your repository on IssueHunt to raise funds.
from cpy.
Hello, I'm interested in solving this issue for you, however I would like to inquire about some details to clear a few things up for me.
What would this recursive option do differently than the parent: true
option? Omit the leading segments in the destination path? (Is that what #40 is about?)
As far as I can tell doing cpy("b", "a", { parents: true })
on b/c/d.js
will result in a/b/c/d.js
, since globby
does a recursive listing already.
What is a clear example where cpy
currently doesn't behave as expected and what would the expected outcome be?
Thank you for your time.
from cpy.
The reason there's a fairly large bounty on this issue is that I don't have all the answers. It's up to the submitter to come up with a good solution. Many of the deficiencies of the current behavior is documented in the linked issues.
from cpy.
@sindresorhus has rewarded $108.00 to @idered. See it on IssueHunt
💰 Total deposit: $120.00- 🎉 Repository reward(0%): $0.00
🔧 Service fee(10%): $12.00
from cpy.
Related Issues (20)
- Support flat mode for copying a single file HOT 2
- Suggestion: Handler 'done' for report of completion HOT 1
- Option 'parents' missing HOT 3
- Feature: preserveTimestamps
- wildcard vs explicit paths have different output HOT 3
- Adding file sourcePath and destinationPath to the progress HOT 1
- cwd ignored when copying files HOT 6
- Can commonjs be supported HOT 2
- when `rename` is a function, `basename` does not contain the file extension from 9.x HOT 1
- Change from progress event to `onProgress` option
- Directory structure not maintained during copy HOT 6
- Upgrade globby to latest version HOT 3
- Failed to copy files into a drive (C:, D:) on Windows HOT 1
- [Security] Update globby dependency to mitigate issue in glob-parent HOT 2
- import error HOT 1
- Strange behavior on latest `recursive` mode HOT 2
- Wrong dependencies resolution HOT 2
- Dependency globby security vulnerability HOT 5
- cpy has transitive dependencies with a CVE vulnerability HOT 7
- Add tests for fixed recursive bugs [NO NEW FEATURES WILL BE ADDED UNTIL THIS IS DONE]
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cpy.