Create;
The Create method creates a folder.
If the folder already exists, an exception is thrown.
Sub Main;
Var
Dir: IDirectoryInfo;
Begin
Dir:=New DirectoryInfo.Attach("c:\New_folder");
If Not Dir.Exists Then
Dir.Create;
End If;
Dispose Dir;
End Sub Main;
After executing the example, the New_folder directory is created if it does not exist.
See also: