Skip to content

Unable to copy folder content from network folder #1085

Description

@Zezeq

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

Node 10.21.0

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

0.8.5

Operating system:

Windows 10

Description of the bug:

When I try to copy all content (*) from a network folder I get an error saying "No such file or directory". Copying the folder itself works fine.
If I try to copy all content (*) from a folder on a local drive to another local folder it works as expected.

Example ShellJS command to reproduce the error:

var shell = require("shelljs");
shell.cp('-rf', '//SERVER/Products/MyProduct/*', 'C:\\Temp');   //Fails
shell.cp('-rf', 'C:\\Products\\MyProduct\\*', 'C:\\Temp');         //Works
shell.cp('-rf', '//SERVER/Products/MyProduct', 'C:\\Temp');     // Works

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions