DEV Community


Posted on

List Numbers Files by Dir in Select Path - Powershell

This script list numbers files by dir in select path

$folders = get-ChildItem -Directory -Path "C:\YOUR_PATH"
$folders |
ForEach-Object { 
        $path = $_.FullName
        Path = $path
        FileCount = (Get-ChildItem -Path $path -Recurse -File).Count 
Enter fullscreen mode Exit fullscreen mode

Thanks for read!

Top comments (0)

An Animated Guide to Node.js Event Loop

Node.js doesn’t stop from running other operations because of Libuv, a C++ library responsible for the event loop and asynchronously handling tasks such as network requests, DNS resolution, file system operations, data encryption, etc.

What happens under the hood when Node.js works on tasks such as database queries? We will explore it by following this piece of code step by step.