TextSearch: only grep files
fix #17012 Change-Id: Id721ec57945d9a57824ae53bf591d0e09a2b53f3 Reviewed-on: https://review.haiku-os.org/c/haiku/+/4094 Reviewed-by: Rene Gollent <[email protected]>
This commit is contained in:
@@ -34,11 +34,14 @@ FileIterator::_ExamineFile(BEntry& entry, char* buffer, bool textFilesOnly)
|
|||||||
|
|
||||||
strcpy(buffer, path.Path());
|
strcpy(buffer, path.Path());
|
||||||
|
|
||||||
|
BNode node(&entry);
|
||||||
|
if (!node.IsFile())
|
||||||
|
return false;
|
||||||
|
|
||||||
if (!textFilesOnly)
|
if (!textFilesOnly)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
BMimeType mimeType;
|
BMimeType mimeType;
|
||||||
BNode node(&entry);
|
|
||||||
BNodeInfo nodeInfo(&node);
|
BNodeInfo nodeInfo(&node);
|
||||||
char mimeTypeString[B_MIME_TYPE_LENGTH];
|
char mimeTypeString[B_MIME_TYPE_LENGTH];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user