|
a/src/internfile/internfile.cpp |
|
b/src/internfile/internfile.cpp |
1 |
#ifndef lint
|
1 |
#ifndef lint
|
2 |
static char rcsid[] = "@(#$Id: internfile.cpp,v 1.4 2005-03-25 09:40:27 dockes Exp $ (C) 2004 J.F.Dockes";
|
2 |
static char rcsid[] = "@(#$Id: internfile.cpp,v 1.5 2005-04-05 09:35:35 dockes Exp $ (C) 2004 J.F.Dockes";
|
3 |
#endif
|
3 |
#endif
|
4 |
#include <unistd.h>
|
4 |
#include <unistd.h>
|
5 |
#include <sys/types.h>
|
5 |
#include <sys/types.h>
|
6 |
#include <sys/stat.h>
|
6 |
#include <sys/stat.h>
|
7 |
#include <errno.h>
|
7 |
#include <errno.h>
|
|
... |
|
... |
86 |
const string& td)
|
86 |
const string& td)
|
87 |
: fn(f), config(cnf), tdir(td), handler(0)
|
87 |
: fn(f), config(cnf), tdir(td), handler(0)
|
88 |
{
|
88 |
{
|
89 |
mime = mimetype(fn, config->getMimeMap());
|
89 |
mime = mimetype(fn, config->getMimeMap());
|
90 |
if (mime.empty()) {
|
90 |
if (mime.empty()) {
|
91 |
// No mime type: not listed in our map.
|
91 |
// No mime type: not listed in our map, or present in stop list
|
92 |
LOGDEB(("FileInterner::FileInterner: (no mime) [%s]\n", fn.c_str()));
|
92 |
LOGDEB(("FileInterner::FileInterner: (no mime) [%s]\n", fn.c_str()));
|
93 |
return;
|
93 |
return;
|
94 |
}
|
94 |
}
|
95 |
|
95 |
|
96 |
// First check for a compressed file. If so, create a temporary
|
96 |
// First check for a compressed file. If so, create a temporary
|