copyfiles icon indicating copy to clipboard operation
copyfiles copied to clipboard

Problem on recursively on rapsberry

Open Chklang opened this issue 6 years ago • 8 comments

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
    • rootfile1

I will have folder1, file1 and rootfile1, but not subfolder1 and subfile1.

Chklang avatar Jan 22 '19 16:01 Chklang

do you know what file system raspberryPi uses ?

calvinmetcalf avatar Jan 22 '19 16:01 calvinmetcalf

same problem on macos.

mdestagnol avatar Feb 08 '19 22:02 mdestagnol

My filesystem is ext4, and node is v9.11.2

Chklang avatar Feb 12 '19 13:02 Chklang

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

Chklang avatar Feb 12 '19 13:02 Chklang

@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

kybarg avatar Feb 14 '19 10:02 kybarg

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

thehappycoder avatar May 23 '19 03:05 thehappycoder

so you could try puting quotes around it, sometimes bash is a little too helpful when it comes to handling the star patterns

calvinmetcalf avatar May 23 '19 11:05 calvinmetcalf

you save my day

lawliet467 avatar May 05 '22 10:05 lawliet467