Skip to content

gulp.src() doesn't like windows paths with paranthesis in the name? #2824

@timint

Description

@timint

What were you expecting to happen?

I expected gulp.src() to resolve a file.

What actually happened?

It produced an error:

Error: File not found with singular glob: D:/Projects/My Project \(alpha\)/public_html/backend/template/less/app.less

Please give us a sample of your gulpfile.mjs

import gulp from 'gulp';

...
var gulp = require(‘gulp');

...

gulp.task('less-to-css', function() {
  return gulp.src([
      'public_html/backend/template/less/app.less',
      ...
  })
  ...

Please provide the following information:

  • Windows 11 24H2
  • Node.js v23.1.0
  • NPM v10.9.0
  • gulp 5.0.0

Additional information

  • Preceeding the file with ./ does not work.
  • Providing the absolute path circumvents the problem.
      'D:/Projects/My Project (alpha)/public_html/backend/template/less/app.less',

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