mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-14 09:29:19 +02:00
* DirectoryExists merged from the fixes branch
This commit is contained in:
parent
bb42b50950
commit
53b6c5d242
@ -454,8 +454,17 @@ begin
|
||||
end;
|
||||
|
||||
|
||||
function DirectoryExists (const Directory: string): boolean;
|
||||
Function DirectoryExists(const Directory: string): Boolean;
|
||||
|
||||
var
|
||||
Info : Stat;
|
||||
l: cint;
|
||||
begin
|
||||
l:=sys_Stat(pchar(Directory),Info);
|
||||
if l<>0 then
|
||||
Result:=S_ISDIR(info.st_mode)
|
||||
else
|
||||
Result := false;
|
||||
end;
|
||||
|
||||
|
||||
@ -538,7 +547,10 @@ Finalization
|
||||
end.
|
||||
{
|
||||
$Log$
|
||||
Revision 1.4 2003-03-29 15:16:26 hajny
|
||||
Revision 1.5 2003-03-29 15:36:58 hajny
|
||||
* DirectoryExists merged from the fixes branch
|
||||
|
||||
Revision 1.4 2003/03/29 15:16:26 hajny
|
||||
* dummy DirectoryExists added
|
||||
|
||||
Revision 1.3 2002/09/07 16:01:26 peter
|
||||
|
Loading…
Reference in New Issue
Block a user