We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The function Invoke-IcingaCheckDirectory doesn't work if you call it without the parameter FileNames set.
If you call the function without any filename it should simply return all files within the directory.
It returns nothing, which is wrong. The directory does contain files.
Either set it as a mandatory parameter or initialize it with '*' as default.
I want to count the files within the directory.
PowerShell Plugins Version 1.3.1
$PSVersionTable.PSVersion
PS H:\> $PSVersionTable Name Value ---- ----- PSVersion 5.1.19041.610 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} BuildVersion 10.0.19041.610 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1
Get-IcingaWindowsInformation Win32_OperatingSystem | Select-Object Version, BuildNumber, Caption
Version BuildNumber Caption ------- ----------- ------- 10.0.19042 19042 Microsoft Windows 10 Pro
The text was updated successfully, but these errors were encountered:
Invoke-IcingaCheckDirectory doesn't work without filename parameter
7a72546
Fixes #154
LordHepipud
Successfully merging a pull request may close this issue.
The function Invoke-IcingaCheckDirectory doesn't work if you call it without the parameter FileNames set.
Expected Behavior
If you call the function without any filename it should simply return all files within the directory.
Current Behavior
It returns nothing, which is wrong. The directory does contain files.
Possible Solution
Either set it as a mandatory parameter or initialize it with '*' as default.
Steps to Reproduce (for bugs)
Context
I want to count the files within the directory.
Your Environment
PowerShell Plugins Version 1.3.1
$PSVersionTable.PSVersion
):Get-IcingaWindowsInformation Win32_OperatingSystem | Select-Object Version, BuildNumber, Caption
):The text was updated successfully, but these errors were encountered: