Replaced File::mk{dir,file} with File::create.
Set the metadata type upon file creation.

We use the standard that the type is also a MIME type.
Superfluous log removed.