System.IOUtils.TPath.SetAttributes
Delphi
class procedure SetAttributes(const Path: string; const Attributes: TFileAttributes); inline; static;
C++
static void __fastcall SetAttributes(const System::UnicodeString Path, const TFileAttributes Attributes);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.IOUtils.pas System.IOUtils.hpp |
System.IOUtils | TPath |
Description
Sets the file or directory attributes.
Call SetAttributes to apply a new set of attributes to a given file or directory.
The following table lists the parameters expected by this method:
Name | Meaning |
---|---|
Path |
The path to the file or directory for which the attributes are obtained. |
Note: SetAttributes raises an exception if the file or directory cannot be accessed or the path is invalid.