我有以下代码,我想排除assets目录中除名为gulp.watch([
'**/*',
'!assets/**/*',
'assets/content/**/*'
]);
的子目录之外的所有文件。这不起作用,因为index.html
assets/
content/
index.html
stylesheets/
default.css
优先。有什么建议吗?
index.html
assets/content/index.html
所以如果目录包含:
assets/stylesheets/default.css
我想看一下:
{{1}}
但不是:
{{1}}
答案 0 :(得分:0)
找到答案:
@echo off
echo --Choose folder to open--
echo G:\Work_A\2017
(echo()
dir /b /a:d G:\Work_A\2017\
echo G:\Work_A\2018\
(echo()
dir /b /a:d G:\Work_A\2018\
set /p "year=Year(2018/2017):"
set /p "folder=Folder:"
if exist "G:\Work_A\%year%\%folder%\" (
explorer "G:\Work_A\%year%\%folder%\"
)