Source commit: e36dc2448b1b83ab03986feefa1535b631a19f82
@@ -827,7 +827,7 @@ namespace WinSCP
_process.StdIn = stream ?? throw Logger.WriteException(new ArgumentNullException(nameof(stream)));
try
{
- remoteFilePath = RemotePath.EscapeFileMask(remoteFilePath);
+ remoteFilePath = RemotePath.EscapeOperationMask(remoteFilePath);
TransferOperationResult operationResult = DoPutFiles("-", remoteFilePath, false, options);
operationResult.Check();
// Assert that any transfer took place at all