System.RmDir
Delphi
procedure RmDir(const S: string);
procedure RmDir(P: PChar);
C++
extern DELPHI_PACKAGE void __fastcall RmDir(const UnicodeString S)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.pas System.hpp |
System | System |
Description
Deletes an empty subdirectory.
RmDir removes the subdirectory with the path specified by S or P. If the path does not exist, is nonempty, or is the currently logged directory, an I/O error occurs.
Note: In Delphi, {$I+} handles run-time errors using exceptions. When using {$I-}, use IOResult to check for I/O errors.
See Also