System.IOUtils.TDirectory.GetParent
Delphi
class function GetParent(const Path: string): string; static;
C++
static System::UnicodeString __fastcall GetParent(const System::UnicodeString Path);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.IOUtils.pas System.IOUtils.hpp |
System.IOUtils | TDirectory |
Description
Returns the parent directory of another directory.
Use GetParent to obtain the parent directory for a given path. Relative paths are considered relative to the application working directory. The following table lists the parameters expected by this method.
Name | Meaning |
---|---|
Path |
The path for which the parent directory will be obtained. |
Note: GetParent raises an exception if the given path is invalid or the directory does not exist.