main
ROOT /
pages /
path-wildcard.md
13 lines | ISO-8859-1 | 679 bytes

Many objects in OneDev are identified via a path-like structure, for instance, branch bugfixes/2.0, tag releases/v2, file src/client/menu.js, or docker image alpine/git

When match against such paths, * or ? can still be used, however they only match current path segment, for instance:

  • * will match file but not dir/file
  • dir/* will match dir/file but not file
  • */* will match dir/file but not dir/dir2/file

To match against arbitrary path segments, ** can be used. for instance:

  • ** will match all paths recursively
  • dir/** will match all paths under dir recursively
  • **/*.js will match all paths ending with .js recursively
Please wait...
Page is in error, reload to recover