Skip to content

Commit 957a625

Browse files
committed
Release 1.252.2025
1 parent a7c4bdf commit 957a625

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

GenXdev.FileSystem.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: genXdev
55
#
6-
# Generated on: 20/08/2025
6+
# Generated on: 21/08/2025
77
#
88

99
@{
@@ -12,7 +12,7 @@
1212
RootModule = 'GenXdev.FileSystem.psm1'
1313

1414
# Version number of this module.
15-
ModuleVersion = '1.250.2025'
15+
ModuleVersion = '1.252.2025'
1616

1717
# Supported PSEditions
1818
CompatiblePSEditions = 'Core'

Tests/GenXdev.FileSystem/Find-Item.Tests.ps1

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ Pester\Describe 'Find-Item 1' {
313313

314314
Pester\It 'Should match the pattern' {
315315

316-
$found = @(GenXdev.FileSystem\Find-Item -SearchMask "$PSScriptRoot\..\..\..\..\..\**\Genx*stem\1.250.2025\Functions\GenXdev.FileSystem\*.ps1" -PassThru | Microsoft.PowerShell.Utility\Select-Object -ExpandProperty FullName)
316+
$found = @(GenXdev.FileSystem\Find-Item -SearchMask "$PSScriptRoot\..\..\..\..\..\**\Genx*stem\1.252.2025\Functions\GenXdev.FileSystem\*.ps1" -PassThru | Microsoft.PowerShell.Utility\Select-Object -ExpandProperty FullName)
317317

318318
$found | Pester\Should -Contain (GenXdev.FileSystem\Expand-Path "$PSScriptRoot\..\..\Functions\GenXdev.FileSystem\EnsurePester.ps1")
319319
$found | Pester\Should -Contain (GenXdev.FileSystem\Expand-Path "$PSScriptRoot\..\..\Functions\GenXdev.FileSystem\Expand-Path.ps1")
@@ -344,7 +344,7 @@ Pester\Describe 'Find-Item 1' {
344344
Pester\It 'Should only show ADS when IncludeAlternateFileStreams is specified' {
345345
# Create a file with an alternate data stream
346346
$testFile = "$testDir\test-ads.txt"
347-
'Main content' | Microsoft.PowerShell.Utility\Out-File -FilePath $testFile
347+
'Main content' | Microsoft.PowerShell.Utility\Out-File $testFile
348348
'Stream content' | Microsoft.PowerShell.Management\Set-Content -LiteralPath $testFile -Stream 'test-stream'
349349

350350
# Without the -IncludeAlternateFileStreams switch, only the base file should be returned
@@ -362,7 +362,7 @@ Pester\Describe 'Find-Item 1' {
362362
Pester\It 'Should find specific named streams when using streammask' {
363363
# Create a file with multiple alternate data streams
364364
$testFile = "$testDir\stream-test.txt"
365-
'Main content' | Microsoft.PowerShell.Utility\Out-File -FilePath $testFile
365+
'Main content' | Microsoft.PowerShell.Utility\Out-File $testFile
366366
'Stream1 content' | Microsoft.PowerShell.Management\Set-Content -LiteralPath $testFile -Stream 'stream1'
367367
'Stream2 content' | Microsoft.PowerShell.Management\Set-Content -LiteralPath $testFile -Stream 'stream2'
368368
'Zone content' | Microsoft.PowerShell.Management\Set-Content -LiteralPath $testFile -Stream 'Zone.Identifier'
@@ -390,7 +390,7 @@ Pester\Describe 'Find-Item 1' {
390390
Pester\It 'Should filter streams with pattern matching' {
391391
# Create a file with multiple alternate data streams with different content
392392
$testFile = "$testDir\pattern-stream.txt"
393-
'Main content' | Microsoft.PowerShell.Utility\Out-File -FilePath $testFile
393+
'Main content' | Microsoft.PowerShell.Utility\Out-File $testFile
394394
'Content with password123' | Microsoft.PowerShell.Management\Set-Content -LiteralPath $testFile -Stream 'secret'
395395
'Content with no match' | Microsoft.PowerShell.Management\Set-Content -LiteralPath $testFile -Stream 'normal'
396396

@@ -409,8 +409,8 @@ Pester\Describe 'Find-Item 1' {
409409
$testFile1 = "$testDir\wildcard1.dat"
410410
$testFile2 = "$testDir\wildcard2.dat"
411411

412-
'File1 content' | Microsoft.PowerShell.Utility\Out-File -FilePath $testFile1
413-
'File2 content' | Microsoft.PowerShell.Utility\Out-File -FilePath $testFile2
412+
'File1 content' | Microsoft.PowerShell.Utility\Out-File $testFile1
413+
'File2 content' | Microsoft.PowerShell.Utility\Out-File $testFile2
414414

415415
'Stream data 1' | Microsoft.PowerShell.Management\Set-Content -LiteralPath $testFile1 -Stream 'data'
416416
'Stream meta 1' | Microsoft.PowerShell.Management\Set-Content -LiteralPath $testFile1 -Stream 'meta'
@@ -431,7 +431,7 @@ Pester\Describe 'Find-Item 1' {
431431
Pester\It 'Should correctly handle -ads flag vs explicit stream masks' {
432432
# Create a file with streams
433433
$testFile = "$testDir\ads-vs-mask.txt"
434-
'Main content' | Microsoft.PowerShell.Utility\Out-File -FilePath $testFile
434+
'Main content' | Microsoft.PowerShell.Utility\Out-File $testFile
435435
'Stream content' | Microsoft.PowerShell.Management\Set-Content -LiteralPath $testFile -Stream 'test1'
436436
'Another stream' | Microsoft.PowerShell.Management\Set-Content -LiteralPath $testFile -Stream 'test2'
437437

@@ -458,8 +458,8 @@ Pester\Describe 'Find-Item 1' {
458458
$file1 = "$subDir\file1.jpg"
459459
$file2 = "$subDir\file2.jpg"
460460

461-
'File1' | Microsoft.PowerShell.Utility\Out-File -FilePath $file1
462-
'File2' | Microsoft.PowerShell.Utility\Out-File -FilePath $file2
461+
'File1' | Microsoft.PowerShell.Utility\Out-File $file1
462+
'File2' | Microsoft.PowerShell.Utility\Out-File $file2
463463

464464
'Description 1' | Microsoft.PowerShell.Management\Set-Content -LiteralPath $file1 -Stream 'description.json'
465465
'Description 2' | Microsoft.PowerShell.Management\Set-Content -LiteralPath $file2 -Stream 'description.json'

0 commit comments

Comments
 (0)