I’m using NeroCOM to write file system data to CD/DVD media. To make this work correctly, I need to be able to determine the number of blocks used by each file and directory (so as not to overfill the disc).
I can do this easily for files. But for directories I’m stumped. What’s the algorithm that relates file system entries to blocks needed by a directory entry? If a directory contains X files, is there some factor I can use to map that to F times X blocks? Or does the space need depend on the length of the names of the entries in the directory?