Test if upload is enabled without a file

Advertisement

davidhenden
Joined:
Posts:
1
Location:
Singapore

Test if upload is enabled without a file

Hellooo,

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?

-David

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,276
Location:
Prague, Czechia

Re: Test if upload is enabled without a file

There's no API in SFTP protocol that could by used by WinSCP (or anything else) to test, if the server is read-only.

Reply with quote

Advertisement

You can post new topics in this forum