Re: Suggestion for file type detection approach



On Thu, 2003-12-25 at 14:48 -0300, Fabio Gomes wrote:
However...

> DETECTION BY SUFFIX					
>  1.Allows wrong results on invalid input (files with wrong 
>    suffixes)

Cannot be fixed to run correctly.

> DETECTION BY SNIFFING
>  1.Allows wrong results on _valid_ input (files with correct 
>    suffix and funny contents)

Can be fixed to run correctly.

Which is more common
a) Files which are badly named?
b) Files which are funny and nautilus sniffs the wrong thing?

iain
-- 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]