The property 'FileMask' cannot be found on this object

Advertisement

ullerdk
Guest

The property 'FileMask' cannot be found on this object

Powershell script with this (only part):

# Connect
$session.Open($sessionOptions)

# Upload files, collect results
$transferOptions.FileMask = "/Archive/" 
$transferResult = $session.PutFiles($localPath, $remotePath, $true, $transferOptions)
Suddenly stopped working with error:

The property 'FileMask' cannot be found on this object

Somebody knows what can cause this?

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,477
Location:
Prague, Czechia

Re: The property 'FileMask' cannot be found on this object

You code example does not show how you initialize the $transferOptions

Reply with quote

Advertisement

You can post new topics in this forum