CreateSubdirectory(Path: String): IDirectoryInfo;
Path - a path that includes the name of a subdirectory that should be created.
The CreateSubdirectory method creates a subdirectory.
Sub Main;
Var
Dir: IDirectoryInfo;
Begin
Dir:=New DirectoryInfo.Attach("c:\New_folder");
If Dir.Exists Then
Dir.CreateSubdirectory("Folder_1");
End If;
Dispose Dir;
End Sub Main;
After executing this example, a subdirectory Folder_1 is created in a directory New_folder.
See also: