CreateSubdirectory(Path: String): IDirectoryInfo;
Path - path that includes the name of a subdirectory that must 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 the example, the Folder_1 subdirectory is created in the New_folder folder.
See also: