cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: How to know Free Disk Space available on FTP Server?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 29 May 2009 11:13:26 +0200 (CEST)

On Fri, 29 May 2009, Cogentree CT wrote:

> I want to know the Free disk space available on FTP server before starting
> FTP Upload. So that I can terminate upload if free size is less than upload
> size. Is there any easy API which will calculate free space available on FTP
> server?

Simple answer: no

Longer answer: there's nothing in the FTP protocol that provides such info.
But FTP has a way to send site-specific commands (using the SITE command) and
there might be such a disk-space checking command somewhere that provides the
info you want, although I'm not aware of any. And of course the server you
work against would need that command then.

-- 
  / daniel.haxx.se
Received on 2009-05-29