Handle device files.
Unknown file types are an error.
Remove some debug prints.