Sign in Join
FPDoc Onlineexperiment

ForceDirectories function

In unit sysutils

Create a chain of directories.

Declaration

pascal
function ForceDirectories(const Dir: RawByteString): Boolean

Description

ForceDirectories tries to create any missing directories in Dir till the whole path in Dir exists. It returns True if Dir already existed or was created successfully. If it failed to create any of the parts, False is returned.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.