WP_Filesystem_FTPext::owner()publicWP 2.5.0

Gets the file owner.

Method of the class: WP_Filesystem_FTPext{}

No Hooks.

Return

String|false. Username of the owner on success, false on failure.

Usage

$WP_Filesystem_FTPext = new WP_Filesystem_FTPext();
$WP_Filesystem_FTPext->owner( $file );
$file(string) (required)
Path to the file.

Changelog

Since 2.5.0 Introduced.

WP_Filesystem_FTPext::owner() code WP 6.5.4

public function owner( $file ) {
	$dir = $this->dirlist( $file );

	return $dir[ $file ]['owner'];
}