From: Curious Person Date: 2003-01-29T04:22:54+09:00 Subject: Re: FileTest.size? vs du -b Kent Dahl wrote in news:3E36C62D.9096E98@stud.ntnu.no: > So take in the filesize, as FileTest.size reports, round upwards to > nearest block size as defined by the target filesystem (IOS9660?) and > use that number to fill it to bursting point. > > http://osdev.berlios.de/osd-fs.html#iso Good idea regarding the blocks. Thank you for that very helpful link. > > Uhm, would this be a bad time to mention that this sounds like the > knapsack problem? :-P Naturally, it's going to be a (somewhat modified) knapsack, but first I need to get the sizes of the directory trees so it knows how big everything is [and in the best size for the target device (CD, DiskOnKey, Zip, whatever]. Thanks to everybody for their very kind help! -C