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

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 ----------------------------------------------------------------------Received on Mon Mar 27 2006 - 13:13:00 PST
This archive was generated by hypermail 2.2.0 : Thu Dec 04 2008 - 03:04:21 PST