-
Parameter Handling:
The function accepts one or more paths (via the-Path
parameter or through the pipeline). It also accepts a-Recurse
switch to control whether subdirectories are searched. -
Input Validation:
Each provided path is checked withTest-Path
. If a path does not exist, a warning is emitted and that path is skipped. -
Parallel Enumeration:
For each valid path, a[System.IO.DirectoryInfo]
object is created. The directories and files are enumerated usingEnumerateDirectories
andEnumerateFiles
respectively, then converted into a parallel query usingAsParallel
. -
Output:
The function concatenates the directories and files found and outputs them as a single collection.
-
Notifications
You must be signed in to change notification settings - Fork 1
Powershell replacement for Get-ChildItem that utilizes multi-threading to achieve faster results than the default Get-ChildItem
License
nathanaelries/gci-AsParallel
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Powershell replacement for Get-ChildItem that utilizes multi-threading to achieve faster results than the default Get-ChildItem
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published