(self, follow_symlinks=True)
| 143 | return self.zip_info.filename.endswith('/') |
| 144 | |
| 145 | def is_file(self, follow_symlinks=True): |
| 146 | if follow_symlinks and self.is_symlink(): |
| 147 | return self.resolve().is_file() |
| 148 | elif self.zip_info is None: |
| 149 | return False |
| 150 | elif fmt := S_IFMT(self.zip_info.external_attr >> 16): |
| 151 | return S_ISREG(fmt) |
| 152 | else: |
| 153 | return not self.zip_info.filename.endswith('/') |
| 154 | |
| 155 | def is_symlink(self): |
| 156 | if self.zip_info is None: |