WisherTools.Helpers
0.2.0-preview0003
**Function Overview**
1. **Get-DirectoryPath**
Converts a base path to a local or UNC format based on whether the target is local or remote.
2. **Get-FunctionScriptBlock**
Retrieves the script block of a specified PowerShell function.
3. **Get-BackupFilePath**
Generates a unique backup file path with a timestamp.
4. **Test-DirectoryExistence**
Ensures that a directory exists; creates it if necessary.
5. **Test-ComputerPing**
Pings a computer to check if it is online with a configurable timeout.
Minimum PowerShell version
5.1
See the version list below for details.
Installation Options
Owners
Copyright
(c) 2024 LarryWisherMan. All rights reserved.
Package Details
Author(s)
- LarryWisherMan
Tags
PowerShell Helper Utilities Directory Network
Functions
Get-DirectoryPath Get-FunctionScriptBlock New-UniqueFilePath Test-ComputerPing Test-DirectoryExistence
Dependencies
This module has no dependencies.
Release Notes
## [0.2.0-preview0003] - 2024-09-10
### Added
- Added detailed comment-based help and Unit Tests to all public functions in the
`WisherTools.Helpers` module. This provides better guidance and documentation
for the following functions:
- `Get-DirectoryPath`
- `Get-FunctionScriptBlock`
- `New-UniqueFilePath`
- `Test-ComputerPing`
- `Test-DirectoryExistence`
- Added module PSData and build config
- Added warning to `New-UniqueFilePath` when the specified directory does not
exist and automatically creates the directory.
- Environment variables (`FILE_DIRECTORY`, `FILE_PREFIX`, `FILE_EXTENSION`) are
now used as default parameters for `New-UniqueFilePath`.
- Created new function `New-UniqueFilePath`, a more generic version of
`Get-BackupFilePath`, to generate unique file paths with customizable
prefixes, directories, and extensions.
### Changed
- Replaced hardcoded defaults in `Get-BackupFilePath` with dynamic environment
variables and made the function more generic.
- Updated `New-UniqueFilePath` to use environment variables for default values
and fallback defaults if not set.
FileList
- WisherTools.Helpers.nuspec
- WisherTools.Helpers.psd1
- WisherTools.Helpers.psm1
- en-US\about_WisherTools.Helpers.help.txt
Version History
Version | Downloads | Last updated |
---|---|---|
0.2.0 | 380 | 9/10/2024 |
0.2.0-previe... | 2 | 9/10/2024 |
0.2.0-previe... (current version) | 2 | 9/10/2024 |
0.2.0-previe... | 8 | 9/7/2024 |
0.1.0 | 44 | 9/7/2024 |
0.1.0-previe... | 2 | 9/7/2024 |