@spinflip Has happened to me many times. You can try all the Linux disk recovery utilities, but they would have been automatically used without you knowing it.
@hasmis any idea what causes it? Most of the directory structure is still there, the files are just Gone
@hasmis also, in what sane world can a crash while SFTPing a single file to a large directory kill everything else in the same directory
@spinflip No idea, but it should be a journaled file system. That means every attempt has been made to recover it. Probably a hardware fault, in which case you are screwez vou'd. But, nice people will tell you to try fdisk, and fschk. Reformat and download again.
@spinflip Hold everything. I just remembered that you cannot run an active Linux file system on the raspi 'bestbuy' micro sd. Those things scratch up like a vinyl record. Only so many read/writes. I program raspis all the time, and I stream data out. I have all my media files on magnetic disks.
@hasmis no, this was on an ext4 external disk hdd