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