Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,10 @@ For example, `-Depth 2` includes the **Path** parameter's directory, first level
and second level of subdirectories. By default directory names and filenames are included in the
output.

> [!NOTE]
> The **Depth** parameter has no effect when used with the **Include** parameter. To work around
> this issue, use the **Filter** parameter instead. This is fixed in PowerShell 6 and higher.

> [!NOTE]
> On a Windows computer from PowerShell or **cmd.exe**, you can display a graphical view of a
> directory structure with the **tree.com** command.
Expand Down Expand Up @@ -802,6 +806,10 @@ after the inclusions, which can affect the final output.
> The **Include** and **Exclude** parameters have no effect when used with the **LiteralPath**
> parameter. This is fixed in PowerShell 7.

> [!NOTE]
> The **Depth** parameter has no effect when used with the **Include** parameter. To work around
> this issue, use the **Filter** parameter instead. This is fixed in PowerShell 6.

```yaml
Type: System.String[]
Parameter Sets: (All)
Expand Down