Sign in Join
FPDoc Onlineexperiment

CreateDirUTF8 function

In unit LazFileUtils

Creates a new directory with the specified name.

Declaration

pascal
function CreateDirUTF8(const NewDir: string): Boolean

Arguments

NewDir

Name for the new directory.

Function result

True if the new directory is successfully created.

Description

CreateDirUTF8 is a Boolean function used to create a new directory in the local file system with the specified name. For the Windows environments, the value in NewDir is converted to wide string format and passed to the CreateDirectoryW function in the Windows unit. For UNIX-like environments, CreateDir in SysUtils is used to create the new directory with the specified name.

The return value is True if the new directory is successfully created.

Errors

An error can occur if a directory with the specified name already exists in the local file system.

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