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