How can I Create folders recursively in Delphi?

后端 未结 2 1610
误落风尘
误落风尘 2021-02-12 12:41

Need some help in creating function which can create folders recursively with giving path:

C:\\TestFolder\\Another\\AndAnother

Delphi function

2条回答
  •  清酒与你
    2021-02-12 13:11

    Use

    ForceDirectories('C:\TestFolder\Another\AndAnother');
    

    (This is a standard RTL function, found in SysUtils.pas. Hence you do not need to create your own function, even though that wouldn't have been difficult.)

提交回复
热议问题