mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-12 17:59:08 +02:00
LazUtils: Move FileIsReadOnly to LazFileUtils (and inline it in FileUtil).
Part of the ongoing restructuring of LazFileUtils/FileUtil. git-svn-id: trunk@41566 -
This commit is contained in:
parent
dc6bd42de5
commit
9cab951c18
@ -1279,7 +1279,7 @@ end;
|
||||
------------------------------------------------------------------------------}
|
||||
function FileIsReadOnlyUTF8(const FileName: String): Boolean;
|
||||
begin
|
||||
Result:=FileGetAttrUTF8(FileName) and faReadOnly > 0;
|
||||
Result := LazFileUtils.FileIsReadOnlyUTF8(FileName);
|
||||
end;
|
||||
|
||||
|
||||
|
@ -250,7 +250,7 @@ function FileSetAttrUTF8(const Filename: String; Attr: longint): Longint; inline
|
||||
function DeleteFileUTF8(const FileName: String): Boolean; inline;
|
||||
function RenameFileUTF8(const OldName, NewName: String): Boolean; inline;
|
||||
function FileSearchUTF8(const Name, DirList : String; ImplicitCurrentDir : Boolean = True): String;
|
||||
function FileIsReadOnlyUTF8(const FileName: String): Boolean;
|
||||
function FileIsReadOnlyUTF8(const FileName: String): Boolean; inline;
|
||||
function GetCurrentDirUTF8: String; inline;
|
||||
function SetCurrentDirUTF8(const NewDir: String): Boolean; inline;
|
||||
function CreateDirUTF8(const NewDir: String): Boolean; inline;
|
||||
|
@ -852,7 +852,7 @@ end;
|
||||
|
||||
function FileIsReadOnlyUTF8(const FileName: String): Boolean;
|
||||
begin
|
||||
Result:=SysUtils.FileIsReadOnly(UTF8ToSys(Filename));
|
||||
Result:=FileGetAttrUTF8(FileName) and faReadOnly > 0;
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user