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-direct.php
* * FIXME does not handle errors in fileperms() * * @since 2.5.0 * * @param string $file Path to the file. * @return string Mode of the file (the last 3 digits). */ public function getchmod( $file ) { return substr( decoct( @fileperms( $file ) ), -3 ); }
Advertisement
Changelog Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |