We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d165b58 commit 7baf99cCopy full SHA for 7baf99c
rocrate_validator/rocrate.py
@@ -195,13 +195,7 @@ def is_available(self) -> bool:
195
logger.debug("Skipping the check for the presence of the Data Entity '%s' within the RO-Crate "
196
"as it is the root of a ZIP archive", self.id)
197
return True
198
- entry = self.ro_crate.get_entry(str(self.id))
199
- if not entry:
200
- return False
201
- if entry.is_dir():
202
- return True
203
- # If the entry is a file, check if it exists and has a size greater than 0
204
- return self.ro_crate.get_file_size(Path(self.id)) > 0
+ return self.ro_crate.get_entry(str(self.id)) is not None
205
206
# check if the entity is part of the remote RO-Crate
207
if self.ro_crate.uri.is_remote_resource():
0 commit comments