WP_Filesystem_ftpsockets::is_dir
Checks if resource is a directory.
Метод класса: WP_Filesystem_ftpsockets{}
Хуков нет.
Возвращает
bool. Whether $path is a directory.
Использование
$WP_Filesystem_ftpsockets = new WP_Filesystem_ftpsockets(); $WP_Filesystem_ftpsockets->is_dir( $path );
- $path(строка) (обязательный)
- Directory path.
Список изменений
| С версии 2.5.0 | Введена. |
Код WP_Filesystem_ftpsockets::is_dir() WP Filesystem ftpsockets::is dir WP 7.1
public function is_dir( $path ) {
$cwd = $this->cwd();
if ( ! $cwd ) {
return false;
}
if ( $this->chdir( $path ) ) {
$this->chdir( $cwd );
return true;
}
return false;
}