-1

我有

D1
  SD1
  SD2
  SD3
  dist

我想将 D1 下的所有目录(dist 除外)复制到 dist。显然我不能将 dist 复制到 dist 否则它将无限递归。

这是我的代码

gulp.task('extras', () => {
  return gulp.src([
    '**/*',
    '!dist/**'], {
    dot: true
  }).pipe(gulp.dest('dist'));
});

它说

events.js:141
      throw er; // Unhandled 'error' event
      ^

Error: EISDIR: illegal operation on a directory, read
    at Error (native)
4

1 回答 1

-1

有一个目录符号链接正在产生问题。它适用于排除。

于 2016-01-28T06:20:37.343 回答