(PECL rar >= 2.0.0)
RarEntry::isDirectory — Test whether an entry represents a directory
This function has no parameters.
Returns true
if this entry is a directory and false
otherwise.
This function is only available starting with version 2.0.0, but one can also test whether an entry is a directory by checking the entry attributes, like this (only works for files compressed in RAR for Windows or Unix):
© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/rarentry.isdirectory.php