System.IOUtils.TPath.GetPathRoot
Delphi
<source lang="delphi">
class function GetPathRoot(const Path: string): string; static;
</source>C++
<source lang="cpp">
static System::UnicodeString __fastcall GetPathRoot(const System::UnicodeString Path);
</source>Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | System.IOUtils.pas System.IOUtils.hpp |
System.IOUtils | TPath |
Description
Gets the root of the specified path.
GetPathRoot extracts and returns the root of the path specified in Path.
If the given path is empty or contains wrong path characters, GetPathRoot raises an EArgumentException.