System.IOUtils.TDirectory.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 | TDirectory |
Description
Sets the directory attributes.
Call SetAttributes to apply a new set of attributes to a given directory.
The following table lists the parameters expected by this method.
| Name | Meaning |
|---|---|
|
Path |
The path to the directory for which the attributes are obtained. |
|
Attributes |
The new set of attributes applied to the directory. |
Note: SetAttributes raises an exception if the directory cannot be accessed or the path is invalid.