WP_Filesystem_Direct::rmdir

Advertisement

Summery Summery

Deletes a directory.

Syntax Syntax

WP_Filesystem_Direct::rmdir( string $path, bool $recursive = false )

Parameters Parameters

$path

(Required) Path to directory.

$recursive

(Optional) Whether to recursively remove files/directories.

Default value: false

Return Return

(bool) True on success, false on failure.

Source Source

File: wp-admin/includes/class-wp-filesystem-direct.php

	 * @return bool True on success, false on failure.
	 */
	public function mkdir( $path, $chmod = false, $chown = false, $chgrp = false ) {

Advertisement

Changelog Changelog

Changelog
Version Description
2.5.0 Introduced.

Advertisement

Leave a Reply