View Issue Details

IDProjectCategoryView StatusLast Update
0002232JEDI VCL00 JVCL Componentspublic2004-10-17 09:00
ReporteranonymousAssigned Toremkobonte 
Status resolvedResolutionfixed 
Product Version3.00 BETA 2 
Target VersionFixed in Version3.00 RC 1 
Summary0002232: bug in TjvSearchFiles
Descriptionline 497 in JvSearchFiles.pas has written
if cFileName[0] <> '.' then

it should be
if (cFileName <> '.') or (cFileName <> '..') and AnsiStrIComp(cFileName, 'System Volume Information') = 0 then

Why folder names can begin with . (dot)
I have successfully created folder '.net' not in
windows explorer but in command line with md .net
We should also skip 'System Volume Information' folder
I have the experience of Search failing if we would like to search in that folder or even crashin application.

TagsNo tags attached.



2004-10-17 09:00

developer   ~0005417

* I have added function IsDotOrDotDot that replaces the cFileName[0] <> '.' check.
* I have added 2 flags to TJvSearchFiles.Options:

  o soIncludeSystemHiddenDirs
  o soIncludeSystemHiddenFiles

that are default off. So at default the component does NOT search in directories that are both hidden and system (such as 'System Volume Information'), and does NOT return files that are both hidden and system (such as IO.SYS)

Issue History

Date Modified Username Field Change
2004-10-17 01:24 anonymous New Issue
2004-10-17 09:00 remkobonte Status new => resolved
2004-10-17 09:00 remkobonte Resolution open => fixed
2004-10-17 09:00 remkobonte Assigned To => remkobonte
2004-10-17 09:00 remkobonte Note Added: 0005417