How does gulp.src exclude directories? pay attention to not even folders.

gulp.task("deal", function() {
    return gulp.src([
        "src/**/*",
        `!src/template/**`
    ])
    .pipe(gulp.dest("dist"));
});

the above statement ignores all files in the "template" folder, but not the template folder. That is, after the gulp has finished running, there is still an empty folder "template" in the "dist" folder. Is there any way not to even want this folder?

Mar.04,2021

gulp.src([
        'src/**/*',
        `!src/template/**`
    ], {
        nodir: true
    })
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b37812-2c08f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b37812-2c08f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?