Comments (3)
Have you read the docs? The first argument expects a glob pattern.
from copy-newer.
Asides from the fact that this sounds like an overlooked edge case (what if I want to apply it to just a single specific file?), there's also the fact that using globs gives exactly the same result:
copyNewer('c:/temp/delete-me-3/*', 'c:/temp/delete-me-2/x');
Or even:
copyNewer('c:\\temp\\delete-me-3\\*', 'c:\\temp\\delete-me-2\\x');
Both cases result in:
Error: ENOENT: no such file or directory, stat 'C:\Temp\delete-me-2\c:\temp\delete-me-3\Novo Documento de Texto.txt'
So, this library seems to be failing to work on Windows, regardless of using globs or not.
If it actually works on Windows, I would really be interested to see a non-theorethical example that proves so.
from copy-newer.
You'll need to mount your source directory into a cwd
; otherwise the pattern would glob the whole path as in your example:
'C:\Temp\delete-me-2\c:\temp\delete-me-3\Novo Documento de Texto.txt'
The program tried to concat the whole path.
from copy-newer.
Related Issues (5)
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 copy-newer.