|
22 | 22 | <Docs>
|
23 | 23 | <summary>Searches the file system for files with names that match specified patterns.</summary>
|
24 | 24 | <remarks>
|
25 |
| - <para>Patterns specified in <seealso cref="M:Microsoft.Extensions.FileSystemGlobbing.Matcher.AddInclude(System.String)" /> and <seealso cref="M:Microsoft.Extensions.FileSystemGlobbing.Matcher.AddExclude(System.String)" /> can use |
26 |
| - the following formats to match multiple files or directories.</para> |
| 25 | + <para>Patterns specified in <see cref="M:Microsoft.Extensions.FileSystemGlobbing.Matcher.AddInclude(System.String)" /> and <see cref="M:Microsoft.Extensions.FileSystemGlobbing.Matcher.AddExclude(System.String)" /> can use the following formats to match multiple files or directories.</para> |
27 | 26 | <list type="bullet">
|
28 | 27 | <item>
|
29 |
| - <term> |
30 |
| - exact directory and file name |
31 |
| - </term> |
32 |
| - <description> |
| 28 | + <description>Exact directory and file name. |
33 | 29 | <list type="bullet">
|
34 | 30 | <item>
|
35 |
| - <term>"one.txt"</term> |
| 31 | + <description><c>one.txt</c></description> |
36 | 32 | </item>
|
37 | 33 | <item>
|
38 |
| - <term>"dir/two.txt"</term> |
| 34 | + <description><c>dir/two.txt</c></description> |
39 | 35 | </item>
|
40 | 36 | </list>
|
41 | 37 | </description>
|
42 | 38 | </item>
|
43 | 39 | <item>
|
44 |
| - <term> |
45 |
| - wildcards (*) in file and directory names that represent zero to many characters not including |
46 |
| - directory separators characters |
47 |
| - </term> |
48 |
| - <description> |
49 |
| - <list type="bullet"> |
| 40 | + <description>Wildcards (*) in file and directory names that represent zero to many characters not including directory separators characters. |
| 41 | + <list type="table"> |
| 42 | + <listheader> |
| 43 | + <term>Value</term> |
| 44 | + <description>Description</description> |
| 45 | + </listheader> |
| 46 | + <item> |
| 47 | + <term><c>*.txt</c></term> |
| 48 | + <description>All files with .txt file extension.</description> |
| 49 | + </item> |
| 50 | + <item> |
| 51 | + <term><c>*.*</c></term> |
| 52 | + <description>All files with an extension.</description> |
| 53 | + </item> |
| 54 | + <item> |
| 55 | + <term><c>*</c></term> |
| 56 | + <description>All files in top-level directory.</description> |
| 57 | + </item> |
| 58 | + <item> |
| 59 | + <term><c>.*</c></term> |
| 60 | + <description>File names beginning with '.'.</description> |
| 61 | + </item> |
50 | 62 | <item>
|
51 |
| - <term>"*.txt"</term> |
52 |
| - <description>all files with .txt file extension</description> |
| 63 | + <term><c>*word*</c></term> |
| 64 | + <description>All files with 'word' in the filename.</description> |
53 | 65 | </item>
|
54 | 66 | <item>
|
55 |
| - <term>"*.*"</term> |
56 |
| - <description>all files with an extension</description> |
| 67 | + <term><c>readme.*</c></term> |
| 68 | + <description>All files named 'readme' with any file extension.</description> |
57 | 69 | </item>
|
58 | 70 | <item>
|
59 |
| - <term>"*"</term> |
60 |
| - <description>all files in top level directory</description> |
| 71 | + <term><c>styles/*.css</c></term> |
| 72 | + <description>All files with extension '.css' in the directory 'styles/'.</description> |
61 | 73 | </item>
|
62 | 74 | <item>
|
63 |
| - <term>".*"</term> |
64 |
| - <description>filenames beginning with '.'</description> |
| 75 | + <term><c>scripts/*/*</c></term> |
| 76 | + <description>All files in 'scripts/' or one level of subdirectory under 'scripts/'.</description> |
65 | 77 | </item>
|
66 |
| - - "*word* - all files with 'word' in the filename |
67 |
| - <item><term>"readme.*"</term><description>all files named 'readme' with any file extension</description></item><item><term>"styles/*.css"</term><description>all files with extension '.css' in the directory 'styles/'</description></item><item><term>"scripts/*/*"</term><description>all files in 'scripts/' or one level of subdirectory under 'scripts/'</description></item><item><term>"images*/*"</term><description>all files in a folder with name that is or begins with 'images'</description></item></list> |
| 78 | + <item> |
| 79 | + <term><c>images*/*</c></term> |
| 80 | + <description>All files in a folder with name that is or begins with 'images'.</description> |
| 81 | + </item> |
| 82 | + </list> |
68 | 83 | </description>
|
69 | 84 | </item>
|
70 | 85 | <item>
|
71 |
| - <term>arbitrary directory depth ("/**/")</term> |
72 |
| - <description> |
73 |
| - <list type="bullet"> |
| 86 | + <description>Arbitrary directory depth (<c>/**/</c>). |
| 87 | + <list type="table"> |
| 88 | + <listheader> |
| 89 | + <term>Value</term> |
| 90 | + <description>Description</description> |
| 91 | + </listheader> |
74 | 92 | <item>
|
75 |
| - <term>"**/*"</term> |
76 |
| - <description>all files in any subdirectory</description> |
| 93 | + <term><c>**/*</c></term> |
| 94 | + <description>All files in any subdirectory.</description> |
77 | 95 | </item>
|
78 | 96 | <item>
|
79 |
| - <term>"dir/**/*"</term> |
80 |
| - <description>all files in any subdirectory under 'dir/'</description> |
| 97 | + <term><c>dir/**/*</c></term> |
| 98 | + <description>All files in any subdirectory under 'dir/'.</description> |
81 | 99 | </item>
|
82 | 100 | </list>
|
83 | 101 | </description>
|
84 | 102 | </item>
|
85 | 103 | <item>
|
86 |
| - <term>relative paths</term> |
87 |
| - <description> |
88 |
| - '../shared/*' - all files in a diretory named 'shared' at the sibling level to the base directory given |
89 |
| - to <see cref="M:Microsoft.Extensions.FileSystemGlobbing.Matcher.Execute(Microsoft.Extensions.FileSystemGlobbing.Abstractions.DirectoryInfoBase)" /></description> |
| 104 | + <description>Relative paths. |
| 105 | + <list type="table"> |
| 106 | + <listheader> |
| 107 | + <term>Value</term> |
| 108 | + <description>Description</description> |
| 109 | + </listheader> |
| 110 | + <item> |
| 111 | + <term><c>../shared/*</c></term> |
| 112 | + <description>All files in a diretory named "shared" at the sibling level to the base directory given to <see cref="M:Microsoft.Extensions.FileSystemGlobbing.Matcher.Execute(Microsoft.Extensions.FileSystemGlobbing.Abstractions.DirectoryInfoBase)" />. |
| 113 | + </description> |
| 114 | + </item> |
| 115 | + </list> |
| 116 | + </description> |
90 | 117 | </item>
|
91 | 118 | </list>
|
92 | 119 | </remarks>
|
|
0 commit comments