WP_Filesystem_SSH2::group

Advertisement

Summery Summery

Gets the file’s group.

Syntax Syntax

WP_Filesystem_SSH2::group( string $file )

Parameters Parameters

$file

(string) (Required) Path to the file.

Return Return

(string|false) The group on success, false on failure.

Source Source

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

	public function getchmod( $file ) {
		return substr( decoct( @fileperms( $this->sftp_path( $file ) ) ), -3 );
	}

	/**
	 * Gets the file's group.
	 *
	 * @since 2.7.0
	 *
	 * @param string $file Path to the file.
	 * @return string|false The group on success, false on failure.

Advertisement

Changelog Changelog

Changelog
Version Description
2.7.0 Introduced.

Advertisement

Leave a Reply

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