[Overview][Constants][Types][Procedures and functions][Variables][Index] Reference for unit 'LazFileUtils' (#lazutils)

CreateDirUTF8

Creates a new directory with the specified name

Declaration

Source position: lazfileutils.pas line 122

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 enviroment, the value in NewDir is converted to wide string format and passed to the CreateDirectoryW function in the Windows unit. For UNIX-like enviroments, 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.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.