Add missing "File"s.
Rename and handle error conditions correctly.
Typoes.
Use the strarray helper here too.