Skip To Content
PowerShell Gallery
Toggle navigation
Packages
Publish
Documentation
Sign in
Search PowerShell packages:
PSAdapter
0.1
Types/PSAdapter/get_PSAdapterType.ps1
if
(
$this
-is
[Management.Automation.PSModuleInfo]
)
{
'Module'
}
elseif
(
$this
-is
[type]
)
{
'Type'
}
elseif
(
$this
-is
[System.IO.FileInfo]
)
{
'File'
}