Roundtrip a file and directory entry.