Topic "The property 'FileMask' cannot be found on this object"

Author Message
ullerdk

Guest


Powershell script with this (only part):

Code:
# 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?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26572
Location: Prague, Czechia
You code example does not show how you initialize the $transferOptions
Advertisements

You can post new topics in this forum






Search

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License