79410775

Date: 2025-02-04 06:48:48
Score: 1.5
Natty:
Report link
$PathObject = (Get-ItemProperty 'C:\somefolder')
if ($PathObject.Attributes -eq 'Directory') {
    write-host 'It''s a directory'
} else {
    write-host 'It''s a file'
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Vladimir1211