-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gulp.src does not work with unc server path #2294
Comments
Hey @ray007 Does that file exist before you run the We use the https://www.npmjs.com/package/glob library internally, so you may need to adjust the settings as documented at https://gulpjs.com/docs/en/api/src#options |
There's also a long-standing issue on node-glob about UNC paths: isaacs/node-glob#74 There's a possible solution at isaacs/node-glob#74 (comment) which says to set the |
@phated Yes, the file does exist, I even get a command-line tab completion for it. The error above also happens since I directly supply the path to 1 file without any wildcards, otherwise there's no error but also no files copied. I already tried with setting the Looking at the options for the Looking at the output with setting
Does that help? |
Note: for |
@ray007 can you try this: var glob = require('glob');
console.log(glob.sync('//server.domain.name/share/some/folders/manual.doc')); |
I've already tried this interactive in the node shell, and it does not work. |
Update: var glob = require('glob');
glob.sync('manual.doc', {cwd: //server.domain.name/share/some/folders}); does work. But function () {
let sDir = '//server.domain.name/share/some/folders';
return gulp.src('manual.doc', {cwd: '//server.domain.name/share/some/folders'})
.pipe(...);
} does not. |
@ray007 thanks for testing those out. It seems that |
It's unfortunate if Edit: or just not create an absolute path when you get a |
I did some debugging, and the problem seems to start in Guess that's the only point where one can place a workaround, if there's no way to get |
@ray007 yeah, unfortunately making all paths absolute is a thing we must do. I forget exactly what it solves but it was something important. |
I cannot imagine must, but if you say it makes something easier, that I can easily believe. |
I'm wondering if this is now fixed based on this? |
Copying some files are feeding them to
gulp-zip
from a connected network drive works when using the path with the drive-letter, but not with the unc server path. Trying to do so gives the following error:What version of gulp are you using?
4.0.0
What versions of npm and node are you using?
All that on Windows 10.
The text was updated successfully, but these errors were encountered: