Lazarus

Free Pascal => FPC development => Topic started by: useministrator on March 17, 2016, 06:23:33 pm

Title: FindAllDirectories return wrong value.
Post by: useministrator on March 17, 2016, 06:23:33 pm
Hello!
I have problem with obtaining a list of directories in directories begin with dot.

In Delphi TDirectory.GetDirectories('d:\test','*',TSearchOption(1)) return:

d:\test\.DotDir
d:\test\.DotDir\dir
d:\test\.DotDir\dir1
d:\test\.DotDir\dir1\dir2
d:\test\.DotDir\dir1\dir2\dir3

d:\test\Dir
d:\test\Dir\Dir4
d:\test\Dir\dir5

In CodeTypon FindAllDirectories('d:\test',True);  return:

d:\test\.DotDir
d:\test\Dir
d:\test\.DotDir\dir
d:\test\.DotDir\dir1
d:\test\Dir\Dir4
d:\test\Dir\dir5

If the problem is confirmed, ask a moderator to move the topic in its proper place.
Typhon 5.8 r52101 FPC 3.1.1 x86_64-win64-win32/win64