System.IOUtils.TPath.IsDriveRooted
Delphi
class function IsDriveRooted(const Path: string): Boolean; static;
C++
static bool __fastcall IsDriveRooted(const System::UnicodeString Path);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.IOUtils.pas System.IOUtils.hpp |
System.IOUtils | TPath |
Description
Checks whether a given path is absolute and starts with a drive letter.
Call IsDriveRooted to check whether a path is absolute and starts with a drive letter. A drive-rooted path is prefixed with a drive letter and a colon (for example, "C:\folder"). IsDriveRooted returns True if the path's root is a drive letter, or False otherwise.
On POSIX, IsDriveRooted always returns false
since there are no drive roots.