gulp clean为何无法删除文件夹?
发布于 9 年前 作者 myylife 5865 次浏览 最后一次编辑是 8 年前 来自 问答

gulp.task(‘clean’, function() { fs.rmdir(‘tmp’, function(){ console.info(‘remove file .’); }); fs.rmdir(‘tmp2’, function(){ console.info(‘remove file …’); }); });

	[08:02:06] Starting 'cleanx'...
	[08:02:06] Finished 'cleanx' after 898 μs
	remove file .
	remove file ..

看了下,文件夹还在,怎么回事?

1 回复
回到顶部