There's no API in SFTP protocol that could by used by WinSCP (or anything else) to test, if the server is read-only.
I want to test if an SFTP server is read-only or accepts uploads.
The first thing that comes to mind is of course to upload a file and see if it returns an error however I do not want to have to create a dummy file to upload.
Is there any way to feed a variable or otherwise trick
$session.PutFiles instead of using an existing filepath or is there any other way to solve this?