Additional param for options.filter() on copy()
See original GitHub issueAt the moment when using copy()
, the options.filter()
function receives the source path
as it’s only param. It would be nice to have both the source and destination paths:
fs.copy(srcFolder, destFolder, {
filter: (srcPath, destPath) => {
return true
}
}, cb)
This would make checking last mod dates much easier.
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (1 by maintainers)
Top Results From Across the Web
How do I pass an extra parameter to the callback function in ...
There is nothing special about it. At some point, filter just calls the callback and passes the current element of the array. So...
Read more >Use query parameters to customize responses - Microsoft Graph
Query parameters can be OData system query options or other query ... See Use the $filter query parameter to filter a collection of...
Read more >How to Create Multiple Select Parameters in Tableau | phData
Step 9: Create a Filter Action to Automatically Deselect the Slider after a Click · Step 8: Add Parameter Action onto the Dashboard...
Read more >Array.prototype.filter() - JavaScript - MDN Web Docs
The filter() method creates a shallow copy of a portion of a given array, filtered down to just the elements from the given...
Read more >Use a URL query to filter a list result
Use URL queries to programmatically generate filtered lists before ... records and where no user will manually add the filter from the UI....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@stephen-last I am learning too, or I’d better say I never stop learning! 😃. I hope you have a wonderful and thriving experience in the journey of educating yourself! Your help is always appreciated here!
@stephen-last if you feel like adding this feature please go ahead and when you are done submit PR, otherwise I will do it.