WP_Filesystem_Base::exists( string $file )

Check if a file or directory exists.


Description Description


Parameters Parameters

$file

(string) (Required) Path to file/directory.


Top ↑

Return Return

(bool) Whether $file exists or not.


Top ↑

Source Source

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

	public function exists( $file ) {
		return false;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.5.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.