WP_Filesystem_ftpsockets::exists

Advertisement

Summery Summery

Checks if a file or directory exists.

Syntax Syntax

WP_Filesystem_ftpsockets::exists( string $file )

Parameters Parameters

$file

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

Return Return

(bool) Whether $file exists or not.

Source Source

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

		}

		if ( ! $recursive ) {
			return $this->ftp->rmdir( $file );
		}

		return $this->ftp->mdel( $file );
	}

	/**

Advertisement

Changelog Changelog

Changelog
Version Description
2.5.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.