namespace: use FileType to specify type of create object

Acked-by: Paul Millar
Target: master
Require-book: no
Require-notes: no