Skip to content

Commit

Permalink
Merge pull request #18 from tmknight/develop
Browse files Browse the repository at this point in the history
v1.7.4
  • Loading branch information
tmknight authored May 4, 2023
2 parents 8c1816d + e6c9a69 commit 2a2737d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions TMK-CoreModules.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Generated by: Travis M Knight
###
@{
ModuleVersion = '1.7.3'
ModuleVersion = '1.7.4'
GUID = '0c83f152-41a4-4997-92da-c06923fb3e12'
Author = 'Travis M Knight'
CompanyName = 'TMK World Headquarters'
Expand Down Expand Up @@ -114,7 +114,8 @@
* 2023-04-14: tmknight: v1.7.1: Add `Force` switch to Find-File
* 2023-05-02: tmknight: v1.7.2: Add `Exclude` parameter Find-File
Improvements to allow Find-File to be more useful in Linux
* 2023-05-02: tmknight: v1.7.3: Correct array designation in Find-File'
* 2023-05-02: tmknight: v1.7.3: Correct array designation in Find-File
* 2023-05-04: tmknight: v1.7.4: Additional adjustments to Find-File to improve experience'
}
}
}
3 changes: 2 additions & 1 deletion public/Find-File.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ function Find-File {
)

Begin {
$Path = ($Path).TrimEnd('\*') + '\*'
$regExPath = ($Path -replace "\\", "\\" -replace "\$", "\$").TrimEnd('\')
$regEx = "([a-zA-Z]\:|\\\\\w{1,}(\.{1}\w{1,}){0,}\\[a-zA-Z]{1,}\$)"
try {
Expand Down Expand Up @@ -159,7 +160,7 @@ function Find-File {
}
Process {
Write-Verbose -Message "Searching $level level directories"
$out = @(Start-Multithreading -InputObject $dirsExt1 -ScriptBlock $block -ArgumentList (, $File) -MaxThreads $MaxThreads -Quiet:$Quiet | Sort-Object -Property File -Unique)
[array]$out = Start-Multithreading -InputObject $dirsExt1 -ScriptBlock $block -ArgumentList (, $File) -MaxThreads $MaxThreads -Quiet:$Quiet | Sort-Object -Property File -Unique

## Search root of $Path and extended root directories
Write-Verbose -Message "Searching root path"
Expand Down

0 comments on commit 2a2737d

Please sign in to comment.