WP_Filesystem_Direct::getchmod()
Gets the permissions of the specified file or filepath in their octal format.
FIXME does not handle errors in fileperms()
Метод класса: WP_Filesystem_Direct{}
Хуков нет.
Возвращает
Строку
. Mode of the file (the last 3 digits).
Использование
$WP_Filesystem_Direct = new WP_Filesystem_Direct(); $WP_Filesystem_Direct->getchmod( $file );
- $file(строка) (обязательный)
- Path to the file.
Список изменений
С версии 2.5.0 | Введена. |
Код WP_Filesystem_Direct::getchmod() WP Filesystem Direct::getchmod WP 6.8
public function getchmod( $file ) { return substr( decoct( @fileperms( $file ) ), -3 ); }