WP_Filesystem_ftpsockets::getchmod()
Gets the permissions of the specified file or filepath in their octal format.
Метод класса: WP_Filesystem_ftpsockets{}
Хуков нет.
Возвращает
Строку
. Mode of the file (the last 3 digits).
Использование
$WP_Filesystem_ftpsockets = new WP_Filesystem_ftpsockets(); $WP_Filesystem_ftpsockets->getchmod( $file );
- $file(строка) (обязательный)
- Path to the file.
Список изменений
С версии 2.5.0 | Введена. |
Код WP_Filesystem_ftpsockets::getchmod() WP Filesystem ftpsockets::getchmod WP 6.5.2
public function getchmod( $file ) { $dir = $this->dirlist( $file ); return $dir[ $file ]['permsn']; }