Skip to content

cp -r fails after 72 directories (Many files) #94

@McPo

Description

@McPo

Im attempting to copy node_modules to a build directory for packaging into an electron application.

It appears that shx silently fails after 72 items.
I checked to make sure it wasn't hiccuping on the last directory it copied 'history', by deleting 'history'. The next alphabetical directory was then copied but no more. ie I think theres a limit on the number of items that can be copied.

shx mkdir ./build/node_modules && shx cp -r ./src/node_modules/* ./build/node_modules

works fine, but

shx cp -r ./src/node_modules ./build/node_modules

does not, while

cp -r ./src/node_modules ./build/node_modules

works as expected.

Ive tried verbose logging, but it just reprints the command. Could it have anything to do with the ulimit being reached on the device as I know I had issues with that and webpack. The solution was to make webpack only process so many files at a time, as the ulimit couldn't be increased.

Im on OSX.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions