Re: The property 'FileMask' cannot be found on this object
You code example does not show how you initialize the
$transferOptions
$transferOptions
# Connect
$session.Open($sessionOptions)
# Upload files, collect results
$transferOptions.FileMask = "/Archive/"
$transferResult = $session.PutFiles($localPath, $remotePath, $true, $transferOptions)