This is a really major useful feature. Thankyou!
Could you add a special "virtual" image for exporting files to the raw SD card? Mount it, then copy a file to it and it vanishes into the ether... written to a folder on the actual SD card as a MacBinary or similar.
I like the idea of using a special floppy disk image for exporting files, instead of an "explode" feature that can operate on any arbitrary disk image. I think that'll be clearer and easier for the user, and will simplify some things for me too since I can rely on the fact that it's a floppy disk and that it has a specific layout that I control. But I don't think I can export files on-the-fly as they're written to the disk image. It needs to be a post-process that operates on the whole image, once you're done copying files to it.
Something like this might work:
1. The user selects a new item from the Floppy Emu menu: "Insert Exporter Disk..."
2. A sub-menu appears asking if the disk should be 400K, 800K, or 1440K
3. A new temporary disk image temp.dsk is created and saved to the SD card.
4. Temp.dsk gets mounted. The name of the disk is "Copy Files Here". Disk emulation proceeds the same way as for any other disk image.
5. The user copies files from their hard drive to the Copy Files Here disk. Files need to be small enough to fit on a floppy disk.
6. When the Mac ejects the disk, the export process will automatically begin. It'll use something like my work-in-progress code, with limitations on file fragmentation, total number of directories, and max directory depth, but for a freshly-made floppy it should work 99+ percent of the time. If it fails, it'll show a graceful error message and suggest using a different tool. Otherwise it'll write all the files to a set of directories under the "export" top-level directory on the SD card. Resource forks will be written as AppleDouble or MacBinary or just a chunk of bytes with a .rsrc filename extension, and data forks will be written to regular files.
7. temp.dsk gets deleted
8. The Floppy Emu will display an export report, something like "Successfully exported 8 directories, 26 files".
9. Floppy Emu then returns to the normal disk selection menu
As inspiration for this feature, I'll tell you story. A few years ago I was contacted by a retired scientist from India. Years earlier, he'd written software on a Mac SE that did some very specific complex calculations related to something like light scattering in different materials. The program was written in a text-based scripting language. He still had the Mac SE, but he no longer had a copy of the software and he
really wanted to get that program script off his SE. But for a scientist he was not technically savvy, and I think he was getting on in years. I needed to hold his hand through the process of selecting and mounting a blank disk image, copying his program to it, then mounting the SD card on his Windows PC, downloading and running HFV Explorer which isn't the most intuitive software, and using HFVExplorer to extract the script from the disk image. It was painful. A feature like this would make that process much easier for the uninitiated, even if it's not really doing anything you couldn't do already with other tools.