Don't try to read metadata from a directory
Rework Metadata Edit (2)