Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

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

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

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?