Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2010-04

FindFirst()

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Bihar Anwar

In Windows XP and upper, traversing directories starting from root directory (e.g. D:\) using FindFirst() and FindNext() will fail (ERROR_ACCESS_DENIED) when iteration encounters "System Volume Information" directory. I solved this by ignoring this error code and keep looping. However, I don't know the equivalent error code in Linux, FreeBSD, MacOS, etc. since I guest this behaviour should be there also in those OSes. Is there a universal way to handle this?

Thanks in advance.

Reply by email