WP_Filesystem_Base::is_dir

Advertisement

Summery Summery

Checks if resource is a directory.

Syntax Syntax

WP_Filesystem_Base::is_dir( string $path )

Parameters Parameters

$path

(Required) Directory path.

Return Return

(bool) Whether $path is a directory.

Source Source

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

	 *
	 * @param string $file File path.
	 * @return bool Whether $file is a file.

Advertisement

Changelog Changelog

Changelog
Version Description
2.5.0 Introduced.

Advertisement

Leave a Reply