Summery Summery
Gets the file’s group.
Syntax Syntax
Parameters Parameters
- $file
-
(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
Version | Description |
---|---|
2.7.0 | Introduced. |