Globbing 模式以包含中间文件夹中的所有文件
Globbing pattern to include all files in the intermediate folder
我正在配置 typescript/karma,我需要使用 globbing 模式匹配目录中的所有文件。
假设我有以下目录结构:
src
webapp
core
ext
libs
所以现在我想匹配 libs
文件夹中的所有文件而不指定文件夹的完整路径。这是正确的 globbing 模式吗:
**/webapp/libs/**
The "files" property takes a list of relative or absolute file paths.
The "include" and "exclude" properties take a list of glob-like file
patterns. The supported glob wildcards are:
- matches zero or more characters (excluding directory separators) ? matches any one character (excluding directory separators)
**/ recursively matches any subdirectory
您的目录结构中没有 "webapp" :) 也许您想要这样的东西?
$ find . -wholename "**/web/libs/*"
./src2/web/libs/t
./src2/web/libs/tt
./src/web/libs/ttt
我正在配置 typescript/karma,我需要使用 globbing 模式匹配目录中的所有文件。
假设我有以下目录结构:
src
webapp
core
ext
libs
所以现在我想匹配 libs
文件夹中的所有文件而不指定文件夹的完整路径。这是正确的 globbing 模式吗:
**/webapp/libs/**
The "files" property takes a list of relative or absolute file paths. The "include" and "exclude" properties take a list of glob-like file patterns. The supported glob wildcards are:
- matches zero or more characters (excluding directory separators) ? matches any one character (excluding directory separators) **/ recursively matches any subdirectory
您的目录结构中没有 "webapp" :) 也许您想要这样的东西?
$ find . -wholename "**/web/libs/*"
./src2/web/libs/t
./src2/web/libs/tt
./src/web/libs/ttt