mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-01 19:29:49 +01:00
* Implemented function ExeSearch
git-svn-id: trunk@12947 -
This commit is contained in:
parent
2c7d05d210
commit
51b49d324e
@ -96,6 +96,7 @@ Function FileSetAttr (Const Filename : String; Attr: longint) : Longint;
|
||||
Function DeleteFile (Const FileName : String) : Boolean;
|
||||
Function RenameFile (Const OldName, NewName : String) : Boolean;
|
||||
Function FileSearch (Const Name, DirList : String; ImplicitCurrentDir : Boolean = True) : String;
|
||||
Function ExeSearch (Const Name, DirList : String) : String;
|
||||
Function FileIsReadOnly(const FileName: String): Boolean;
|
||||
|
||||
Function GetFileHandle(var f : File):Longint;
|
||||
|
||||
@ -51,6 +51,16 @@
|
||||
result:='';
|
||||
end;
|
||||
|
||||
Function ExeSearch (Const Name, DirList : String) : String;
|
||||
|
||||
begin
|
||||
{$ifdef unix}
|
||||
Result := FileSearch(Name, DirList, False);
|
||||
{$else unix}
|
||||
Result := FileSearch(Name, DirList, True);
|
||||
{$endif unix}
|
||||
end;
|
||||
|
||||
{$ifndef OS_FILEISREADONLY}
|
||||
Function FileIsReadOnly(const FileName: String): Boolean;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user