Re: File sniffing patch


Subject: Re: File sniffing patch
sterwill@abisource.com
Date: Tue Feb 15 2000 - 16:14:28 CST


Kevin Vajk wrote:
> This patch adds file type detection based on the file contents.
> Precedence is given to the filename suffix, so this code only gets
> used if the suffix if unknown or unrecognized. In the future, I'd
> like to have a smarter algorithm, which looks at both the suffix
> and the file contents, and tries to find the best match.

It seems to work pretty well for me, so I've committed it to the
tree. The code is all XP, so hopefully the functionality will spread
nicely to the platforms I haven't had a chance to test yet (Win32,
BeOS, QNX).

-- 
Shaw Terwilliger



This archive was generated by hypermail 2b25 : Tue Feb 15 2000 - 16:14:30 CST