You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
varshell=require("shelljs");shell.cp('-rf','//SERVER/Products/MyProduct/*','C:\\Temp');//Failsshell.cp('-rf','C:\\Products\\MyProduct\\*','C:\\Temp');//Worksshell.cp('-rf','//SERVER/Products/MyProduct','C:\\Temp');// Works
The text was updated successfully, but these errors were encountered:
Sounds like the glob expansion is failing for the network drive. This is probably an issue specific to how Windows works, since it sounds like it's not returning the directory listing.
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:
The text was updated successfully, but these errors were encountered: