id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 781,FileGetAttrib fails to recognize (D)irectories,PHolzwarth@…,,"The FileGetAttrib function only rarely returns a ""D"" flag for directories. In most cases, the return string is just blank. code to reproduce this: ------------------------ $rootDir = FileSelectFolder (""Choose directory"", ""\"",2+4) If @error Then MsgBox(4096,"""",""No File(s) chosen"") Exit Else $search= FileFindFirstFile($rootDir & ""\*"") If $search <> -1 Then While 1 $file= FileFindNextFile($search) If @error Then ExitLoop EndIf $attrib = FileGetAttrib($file) MsgBox(0, ""attrib"", $file & "" has "" & $attrib) WEnd EndIf EndIf Exit ------------------------ ",Bug,closed,,AutoIt,3.3.0.0,None,No Bug,,