ForceDirectories

From SCAR Divi Manual
Jump to: navigation, search

Definition

function ForceDirectories(const Path: string): Boolean;

Availability

SCAR Divi 3.25 > Current

Description

Creates all directories defined by Path recursively if it does not exist yet. Returns false if the function failed, which is most likely to happen if you do not have permission to write in the directory where you are creating the directories.

Example

begin
  ForceDirectories(LogsPath + 'TestFolder\TestFolderSub\');
end.

See Also