Skip to content

Commit 4ea4b65

Browse files
committed
Release 1.200.2025
1 parent e1fd852 commit 4ea4b65

26 files changed

Lines changed: 167 additions & 167 deletions

Functions/GenXdev.FileSystem/EnsurePester.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
################################################################################
1+
###############################################################################
22
<#
33
.SYNOPSIS
44
Ensures Pester testing framework is available for use.
@@ -11,8 +11,8 @@ Pester testing capabilities are available when needed.
1111
1212
.EXAMPLE
1313
EnsurePester
14-
# This ensures Pester is installed and ready for use
15-
#>
14+
###############################################################################This ensures Pester is installed and ready for use
15+
###############################################################################>
1616
function EnsurePester {
1717

1818
[CmdletBinding()]
@@ -67,4 +67,4 @@ process {
6767
end {
6868
}
6969
}
70-
################################################################################
70+
###############################################################################

Functions/GenXdev.FileSystem/Expand-Path.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
################################################################################
1+
###############################################################################
22
<#
33
.SYNOPSIS
44
Expands any given file reference to a full pathname.
@@ -21,7 +21,7 @@ Expand-Path -FilePath ".\myfile.txt" -CreateFile
2121
2222
.EXAMPLE
2323
ep ~\documents\test.txt -CreateFile
24-
#>
24+
###############################################################################>
2525
function Expand-Path {
2626

2727
[CmdletBinding()]
@@ -304,4 +304,4 @@ process {
304304
end {
305305
}
306306
}
307-
################################################################################
307+
###############################################################################

Functions/GenXdev.FileSystem/Find-DuplicateFiles.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
################################################################################
1+
###############################################################################
22
<#
33
.SYNOPSIS
44
Find duplicate files across multiple directories based on configurable criteria.
@@ -24,7 +24,7 @@ Find-DuplicateFiles -Paths "C:\Photos","D:\Backup\Photos"
2424
2525
.EXAMPLE
2626
"C:\Photos","D:\Backup\Photos" | fdf -DontCompareSize
27-
#>
27+
###############################################################################>
2828
function Find-DuplicateFiles {
2929

3030
[CmdletBinding()]
@@ -127,4 +127,4 @@ process {
127127
}
128128
}
129129
}
130-
################################################################################
130+
###############################################################################

Functions/GenXdev.FileSystem/Find-Item.ps1

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
################################################################################
1+
###############################################################################
22
<#
33
.SYNOPSIS
44
Performs advanced file and directory searches with content filtering capabilities.
@@ -40,86 +40,86 @@ Include alternate data streams in search results.
4040
Prevents recursive searching into subdirectories.
4141
4242
.EXAMPLE
43-
# Find all files with that have the word "translation" in their content
43+
###############################################################################Find all files with that have the word "translation" in their content
4444
Find-Item -Pattern "translation"
4545
46-
# or in short
46+
###############################################################################or in short
4747
l -mc translation
4848
4949
.EXAMPLE
50-
# Find any javascript file that tests a version string in it's code
50+
###############################################################################Find any javascript file that tests a version string in it's code
5151
Find-Item -SearchMask *.js -Pattern "Version == `"\d\d?\.\d\d?\.\d\d?`""
5252
53-
# or in short
53+
###############################################################################or in short
5454
l *.js "Version == `"\d\d?\.\d\d?\.\d\d?`""
5555
5656
.EXAMPLE
57-
# Find any node_modules\react-dom folder on all drives
57+
###############################################################################Find any node_modules\react-dom folder on all drives
5858
Find-Item -SearchMask "node_modules\react-dom" -Pattern "Version == `"\d\d?\.\d\d?\.\d\d?`""
5959
60-
# or in short
60+
###############################################################################or in short
6161
l *.js "Version == `"\d\d?\.\d\d?\.\d\d?`""
6262
6363
.EXAMPLE
64-
# Find all directories in the current directory and its subdirectories
64+
###############################################################################Find all directories in the current directory and its subdirectories
6565
Find-Item -Directory
6666
67-
# or in short
67+
###############################################################################or in short
6868
l -dir
6969
7070
.EXAMPLE
71-
# Find all files with the .log extension in all drives
71+
###############################################################################Find all files with the .log extension in all drives
7272
Find-Item -SearchMask "*.log" -AllDrives
7373
74-
# or in short
74+
###############################################################################or in short
7575
l *.log -all
7676
7777
.EXAMPLE
78-
# Find all files with the .config extension and search for the pattern "connectionString" within the files
78+
###############################################################################Find all files with the .config extension and search for the pattern "connectionString" within the files
7979
Find-Item -SearchMask "*.config" -Pattern "connectionString"
8080
81-
# or in short
81+
###############################################################################or in short
8282
l *.config connectionString
8383
8484
.EXAMPLE
85-
# Find all files with the .xml extension and pass the objects through the pipeline
85+
###############################################################################Find all files with the .xml extension and pass the objects through the pipeline
8686
Find-Item -SearchMask "*.xml" -PassThru
8787
88-
# or in short
88+
###############################################################################or in short
8989
l *.xml -PassThru
9090
9191
.EXAMPLE
92-
# Find all files and also include alternate data streams
92+
###############################################################################Find all files and also include alternate data streams
9393
Find-Item -IncludeAlternateFileStreams
9494
95-
# or in short
95+
###############################################################################or in short
9696
l -ads
9797
9898
.EXAMPLE
99-
# Find only the alternate data streams (not the base files) for all .jpg files
99+
###############################################################################Find only the alternate data streams (not the base files) for all .jpg files
100100
Find-Item -SearchMask "*.jpg:"
101101
102-
# This syntax automatically enables -IncludeAlternateFileStreams
102+
###############################################################################This syntax automatically enables -IncludeAlternateFileStreams
103103
104104
.EXAMPLE
105-
# Find jpg files that have a stream named "Zone.Identifier"
105+
###############################################################################Find jpg files that have a stream named "Zone.Identifier"
106106
Find-Item -SearchMask "*.jpg:Zone.Identifier"
107107
108-
# No need to specify -IncludeAlternateFileStreams, it's automatically enabled
108+
###############################################################################No need to specify -IncludeAlternateFileStreams, it's automatically enabled
109109
110110
.EXAMPLE
111-
# Find all alternate filestreams in the current directory and beyond
112-
# containing "secret" text in their content
111+
###############################################################################Find all alternate filestreams in the current directory and beyond
112+
###############################################################################containing "secret" text in their content
113113
Find-Item -SearchMask "*:*" -Pattern "secret"
114114
115-
# This will find all alternate streams in any file that contain the word "secret"
115+
###############################################################################This will find all alternate streams in any file that contain the word "secret"
116116
117117
.EXAMPLE
118-
# Find files with Zone.Identifier streams and return them as objects
118+
###############################################################################Find files with Zone.Identifier streams and return them as objects
119119
Find-Item "*:Zone*" -PassThru
120120
121-
# Returns System.IO.FileInfo.AlternateDataStream objects with full FileInfo compatibility
122-
#>
121+
###############################################################################Returns System.IO.FileInfo.AlternateDataStream objects with full FileInfo compatibility
122+
###############################################################################>
123123
function Find-Item {
124124

125125
[CmdletBinding(DefaultParameterSetName = "Default")]
@@ -1139,4 +1139,4 @@ function Find-Item {
11391139
Microsoft.PowerShell.Utility\Write-Information "END Find-Item: Function execution completed"
11401140
}
11411141
}
1142-
################################################################################
1142+
###############################################################################

Functions/GenXdev.FileSystem/Invoke-Fasti.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
################################################################################
1+
###############################################################################
22
<#
33
.SYNOPSIS
44
Extracts archive files in the current directory and deletes the originals.
@@ -18,7 +18,7 @@ PS C:\Downloads> fasti
1818
.NOTES
1919
Supported formats: 7z, zip, rar, tar, iso and many others.
2020
Requires 7-Zip installation (will attempt auto-install via winget if missing).
21-
#>
21+
###############################################################################>
2222
function Invoke-Fasti {
2323

2424
[CmdletBinding()]
@@ -118,4 +118,4 @@ process {
118118
end {
119119
}
120120
}
121-
################################################################################
121+
###############################################################################

Functions/GenXdev.FileSystem/Move-ItemWithTracking.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
################################################################################
1+
###############################################################################
22
<#
33
.SYNOPSIS
44
Moves files and directories while preserving filesystem links and references.
@@ -27,12 +27,12 @@ destination path.
2727
2828
.EXAMPLE
2929
Move-ItemWithTracking -Path "C:\temp\oldfile.txt" -Destination "D:\newfile.txt"
30-
# Moves a file while preserving any existing filesystem links
30+
###############################################################################Moves a file while preserving any existing filesystem links
3131
3232
.EXAMPLE
3333
"C:\temp\olddir" | Move-ItemWithTracking -Destination "D:\newdir" -Force
34-
# Moves a directory, overwriting destination if it exists
35-
#>
34+
###############################################################################Moves a directory, overwriting destination if it exists
35+
###############################################################################>
3636
function Move-ItemWithTracking {
3737

3838
[CmdletBinding(SupportsShouldProcess)]
@@ -145,4 +145,4 @@ process {
145145
end {
146146
}
147147
}
148-
################################################################################
148+
###############################################################################

Functions/GenXdev.FileSystem/Move-ToRecycleBin.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
################################################################################
1+
###############################################################################
22
<#
33
.SYNOPSIS
44
Moves files and directories to the Windows Recycle Bin safely.
@@ -16,12 +16,12 @@ accessible.
1616
1717
.EXAMPLE
1818
Move-ToRecycleBin -Path "C:\temp\old-report.txt"
19-
# Moves a single file to the recycle bin
19+
###############################################################################Moves a single file to the recycle bin
2020
2121
.EXAMPLE
2222
"file1.txt","file2.txt" | recycle
23-
# Moves multiple files using pipeline and alias
24-
#>
23+
###############################################################################Moves multiple files using pipeline and alias
24+
###############################################################################>
2525
function Move-ToRecycleBin {
2626

2727
[CmdletBinding(SupportsShouldProcess)]
@@ -115,4 +115,4 @@ process {
115115
return $success
116116
}
117117
}
118-
################################################################################
118+
###############################################################################

Functions/GenXdev.FileSystem/Remove-AllItems.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
################################################################################
1+
###############################################################################
22
<#
33
.SYNOPSIS
44
Recursively removes all content from a directory with advanced error handling.
@@ -24,7 +24,7 @@ Remove-AllItems -Path "C:\Temp\BuildOutput" -DeleteFolder -Verbose
2424
2525
.EXAMPLE
2626
sdel ".\temp" -DeleteFolder
27-
#>
27+
###############################################################################>
2828
function Remove-AllItems {
2929

3030
[CmdletBinding(SupportsShouldProcess)]
@@ -144,4 +144,4 @@ function Remove-AllItems {
144144
$WhatIfPreference = $originalWhatIfPreference
145145
}
146146
}
147-
################################################################################
147+
###############################################################################

Functions/GenXdev.FileSystem/Remove-ItemWithFallback.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
################################################################################
1+
###############################################################################
22
<#
33
.SYNOPSIS
44
Removes files or directories with multiple fallback mechanisms for reliable deletion.
@@ -26,7 +26,7 @@ Attempts to remove the file using all available methods.
2626
.EXAMPLE
2727
"C:\temp\mydir" | rif
2828
Uses the alias 'rif' to remove a directory through the pipeline.
29-
#>
29+
###############################################################################>
3030
function Remove-ItemWithFallback {
3131

3232
[CmdletBinding(SupportsShouldProcess = $true)]
@@ -151,4 +151,4 @@ function Remove-ItemWithFallback {
151151
end {
152152
}
153153
}
154-
################################################################################
154+
###############################################################################

Functions/GenXdev.FileSystem/Remove-OnReboot.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
################################################################################
1+
###############################################################################
22

33
<#
44
.SYNOPSIS
@@ -22,7 +22,7 @@ Remove-OnReboot -Path "C:\temp\locked-file.txt"
2222
2323
.EXAMPLE
2424
"file1.txt","file2.txt" | Remove-OnReboot -MarkInPlace
25-
#>
25+
###############################################################################>
2626
function Remove-OnReboot {
2727

2828
[CmdletBinding(SupportsShouldProcess)]
@@ -145,4 +145,4 @@ process {
145145
end {
146146
}
147147
}
148-
################################################################################
148+
###############################################################################

0 commit comments

Comments
 (0)