Add tests for win_stat module.

reviewable/pr18780/r1
Chris Church 11 years ago committed by Matt Martz
parent c218a125bb
commit a13b2dd3b3

@ -27,7 +27,8 @@ description:
options:
path:
description:
- The full path of the file/object to get the facts of
- The full path of the file/object to get the facts of; both forward and
back slashes are accepted.
required: true
default: null
aliases: []

@ -19,16 +19,20 @@
$params = Parse-Args $args;
$path = '';
$path = $FALSE;
If ($params.path.GetType)
{
$path = $params.path;
}
If ($path -eq $FALSE)
{
Fail-Json (New-Object psobject) "missing required argument: path";
}
$get_md5 = $TRUE;
If ($params.get_md5.GetType)
{
$get_md5 = $params.get_md5;
$get_md5 = $params.get_md5 | ConvertTo-Bool;
}
$result = New-Object psobject @{

Loading…
Cancel
Save