[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 126

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.


Version 3.2 Generated 2024-02-25 Home