Skip to content

Copying hidden files fails on Windows 10 #711

@rajsite

Description

@rajsite

Node version (or tell us if you're using electron or some other framework):

v6.9.5

ShellJS version (the most recent version/Github branch you see the bug on):

shelljs 0.7.7 via shx 0.2.2

Operating system:

Windows 10 64-bit

Description of the bug:

On Windows trying to copy files in a directory that contain only a single file named .nojekyll results in error:

cp: no such file or directory: Documents/DocumentsRoot/*

Directory structure:
/gh-pages/
/Documents/DocumentsRoot/.nojekyll

command run: shx cp Documents/DocumentsRoot/* gh-pages

The following comment specifies that should be fixed:
#140 (comment)

But I still have to do the workaround of including a . before the wildcard like:
shx cp Documents/DocumentsRoot/.* gh-pages

I see the behavior both with and without the -r flag when using shx. Have not tried using shelljs directly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions