WP_Filesystem_Base::exists( string $file )

Checks if a file or directory exists.


Parameters Parameters

$file

(string) (Required) Path to file or 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.