Pascal Scripting: ForceDirectories

Prototype:

function ForceDirectories(Dir: string): Boolean;

Description:

Creates all the directories along the specified directory path all at once. If the first directories in the path do exist, but the latter ones don't, ForceDirectories creates just the ones that don't exist. Returns True if successful, False otherwise.