> under > which circumstance can the TSearchRec.Name become an empty string? Only under situation of currupted file system on Unix like systems, where os trusts the empty filename. It never happens in real life. It was a defensive peogramming.