The snippet below detects from a list of files which of them is a Directory on Ftp
as C# it will be like below
var files = new List(){\"App
This is a really simple implementation for First:
First
function First($collection) { foreach ($item in $collection) { return $item } return $null }
Instead of returning $null, you could throw an InvalidOperationException exception.
$null
InvalidOperationException