(self)
| 1077 | return len(obj) if obj else 0 |
| 1078 | |
| 1079 | def unprotect(self): |
| 1080 | if self.exists and self.use_cache: |
| 1081 | with TqdmCallback( |
| 1082 | size=self.meta.nfiles or -1, desc=f"Unprotecting {self}" |
| 1083 | ) as callback: |
| 1084 | self.cache.unprotect(self.fs_path, callback=callback) |
| 1085 | |
| 1086 | def get_dir_cache(self, **kwargs) -> Optional["Tree"]: |
| 1087 | if not self.is_dir_checksum: |