Nope, I was wrong. You can export a PNG with the option that each layer exports as a separate file. But you already know this.

Photoshop PSD will export layers and retain the layer name.