Home > PHP > Function > > ZipArchive::addEmptyDir()

ZipArchive::addEmptyDir()

ZipArchive::addEmptyDir - Add a new directory

Syntax

bool ZipArchive::addEmptyDir (string $dirname)

Arguments

  • dirname - The directory to add.

Description

Adds an empty directory in the archive.

Version

PHP 5.2.0, PECL zip >= 1.8.0

Return value

Returns TRUE on success or FALSE on failure.