copyfiles
copyfiles copied to clipboard
Problem on recursively on rapsberry
On windows 10 i've no problems but on a raspberryPi, with node 9.11.2 and copyfiles 2.1.0, the glob pattern : "lib/**/*" doesn't include subdirectories. On filesystem :
- lib
- folder1
- subfolder1
- subfile1
- file1
- subfolder1
- rootfile1
- folder1
I will have folder1, file1 and rootfile1, but not subfolder1 and subfile1.
do you know what file system raspberryPi uses ?
same problem on macos.
My filesystem is ext4, and node is v9.11.2
To reproduce it ;
fs :
shell > find test1
test1 test1/test2 test1/test2/test2.txt test1/test2/test3 test1/test2/test3/test3.txt test1/test2/test3/test4 test1/test2/test3/test4/test4.txt
Package.json :
{ "name": "testfs", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "start": "copyfiles test1/** dist/", "test": "echo "Error: no test specified" && exit 1" }, "author": "", "license": "ISC", "devDependencies": { "copyfiles": "^2.1.0" } }
Result :
shell > find dist
dist dist/test1 dist/test1/test1.txt
And with "start": "copyfiles test1/**/* dist/" :
shell > find dist
dist dist/test1 dist/test1/test2 dist/test1/test2/test2.txt
@calvinmetcalf same thing on Circle CI, while building on Windows machine everything works just fine, on Linux machine at Circle CI sub folders are empty
On both mac and Linux, I have to use this workaround to support copying up to 2 levels deep:
copyup src/**/**/*.html build && copyup src/**/*.html build
so you could try puting quotes around it, sometimes bash is a little too helpful when it comes to handling the star patterns
you save my day