Add file type and folder type support.