From: Timothy Goddard Date: 2006-01-25T00:55:36+09:00 Subject: Re: Disk Free Space This is highly OS-specific so I sincerely doubt there is a general method. Different OSes treat disks entirely differently. To demonstrate the complexity, simply ask yourself these questions: Is a network share a disk? A folder on a remote FTP server? A loop device mounting a file on a remote SMB server accessed via a VPN? The file itself? Try either using a system-specific call for each platform you may be operating on or simply try to write your stuff to the disk, catching the appropriate error if it fails.