XE8 (, , ). RRUZ, SysUtils BOTH DirectoryExists() TDirectory.Exists().
, "" , , INVALID_FILE_ATTRIBUTES "" . , , , , , . INVALID_FILE_ATTRIBUTES , . , , , . , , . , - , ", , ", , , / : , 99,9% , INVALID_FILE_ATTRIBUTES , , TRUE , .
, , , , " " - , , -: , , , "", ! GetLastError, .
, - Sysutils.DirectoryExists ( , ) TDirectory.Exists , . :
DirectoryUsable(const Directory: string; FollowLink: Boolean = True): Boolean;
begin
Result := GetFileAttributes(PChar(Directory)) <> INVALID_FILE_ATTRIBUTES;
if Result then Result := DirectoryExists( Directory, FollowLink );
end;
, "" , , Embarcadero - , .
, .
SysUtils, , Delphi , . , , " " . , , " ". , TRUE.