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: Give the ability to fetch available space from the scripting interface and the .NET wrapper

Thanks for your suggestion.
We will see, if more people ask for this.
RSM

Give the ability to fetch available space from the scripting interface and the .NET wrapper

The WinSCP interface lets you see disk usage on the Server and Protocol Information Dialog:



This information is however not retrievable from the scripting interface nor the .NET wrapper, as far as I could find.

This can be very useful, notably with .NET, to check disk usage before deciding to upload or not.

As of right now, the only possible workaround is to manually call
df
when on SFTP assuming it is even supported, and parse everything ourselves even though WinSCP is capable of doing it and already implements it internally.

It would be nice for the scripting interface (and therefore the .NET wrapper) to be able to return this information to the user, please :)