System.IOUtils.TPath.DriveExists
Delphi
class function DriveExists(const Path: string): Boolean; static;
C++
static bool __fastcall DriveExists(const System::UnicodeString Path);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.IOUtils.pas System.IOUtils.hpp |
System.IOUtils | TPath |
Description
Checks whether the drive letter used in the given path actually exists.
Call DriveExists to check whether a path's drive letter identifies a valid Windows drive. DriveExists returns True if the path's root is a drive letter that identifies a valid drive, or False otherwise.
The following table lists the parameters expected by this method:
Name | Meaning |
---|---|
Path |
The verified path |
Note: On POSIX, DriveExists will always returns
false
.
Note: DriveExists raises an exception if the given paths contain invalid characters.
See Also
Code Examples