<p><code>dir /s foo</code> searches in current folder and sub folders.</p>
<p>It finds directories as well as files.</p>
<p>where /s means<a href="https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/dir">(documentation)</a>:</p>
<p>/s Lists every occurrence of the specified file name within the<br>
specified directory and all subdirectories.</p>