![]() |
||
| Home | SwiftForth Archive | SwiftX Archive | |

Good point, Stefan - thanks.
- Roger
-----Original Message-----
From: sftalk-bounce_at_forth.com [mailto:sftalk-bounce_at_forth.com] On Behalf Of
Stefan Schmiedl
Sent: Monday, March 27, 2006 4:12 PM
To: sftalk_at_forth.com
Subject: [sftalk] Re: free space on a volume
Dr. Roger Dube (27.03. 14:43):
> I need to be able to get the amount of free space remaining on a volume so
> that we do not write a file onto a volume that has insufficient space left
-
> one approach would be to try writing and see if we get an error - not very
> elegant - the other approach would be to check the free space remaining
and
> compare to the file size BEFORE we even start writing. has anyone seen a
way
> to get the volume free space information?
You're makeing a decision in software that the user might want to
make for himself. If I have 100 MB text files (numeric data in
CSV from some highly scientific gadgets), I might be able to
squeeze it into the last 30 free MB of an NTFS partition, if I
activated the compression for the target folder.
So I'd recommend "inform and ask" as alternate strategy here.
s.
-- Stefan Schmiedl +-------------------------------+----------------------------------------+ |Approximity GmbH | EDV-Beratung Schmiedl | |http://www.approximity.com | Am Bräuweiher 4, 93499 Zandt, Germany | |mailto:stefan_at_approximity.com | Tel. (09944) 3068-98, Fax -97 | +-------------------------------+----------------------------------------+ ---------------------------------------------------------------------- sftalk_at_forth.com The SwiftForth programming discussion email list To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com For list command help, send subject "help" to sftalk-request_at_forth.com Message archives are located at http://www.forth.com/archive/sftalk ---------------------------------------------------------------------- This list is a forum for SwiftForth users. For product support and bug reports, please send email to support_at_forth.com ---------------------------------------------------------------------- -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.3.2/293 - Release Date: 3/26/2006 ---------------------------------------------------------------------- sftalk_at_forth.com The SwiftForth programming discussion email list To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com For list command help, send subject "help" to sftalk-request_at_forth.com Message archives are located at http://www.forth.com/archive/sftalk ---------------------------------------------------------------------- This list is a forum for SwiftForth users. For product support and bug reports, please send email to support_at_forth.com ----------------------------------------------------------------------Received on Mon Mar 27 2006 - 13:19:53 PST
This archive was generated by hypermail 2.2.0 : Thu Dec 04 2008 - 03:04:21 PST