[Overview][Constants][Types][Procedures and functions][Variables][Index] |
Sets the file attribute value for the specified file name.
Source position: lazfileutils.pas line 119
function FileSetAttrUTF8( |
const Filename: string; |
Attr: LongInt |
):LongInt; |
Filename |
|
File name to update in the function. |
Attr |
|
File attribute value for the specified file name. |
Last error number from the function.
FileSetAttrUTF8 is a Longint function used to set the file attributes for the specified file name to the value in Attr. The value in Attr can be set by AND-ing predefined file attribute constants, such as:
For UNIX-like environments, FileSetAttr in SysUtils is called to set the file attributes value. InvalidateFileStateCache is also called for the specified file name. For the Windows environment, SetFileAttributesW in Windows is called to set the attributes value for the specified file name.
The return value contains the result from GetLastError; a non-zero value indicates that an error has occurred.
Version 3.2 | Generated 2024-02-25 | Home |