Compare commits
2 Commits
5e6f2cb963
...
c5c8288eeb
| Author | SHA1 | Date | |
|---|---|---|---|
| c5c8288eeb | |||
|
|
256fced4f0 |
@@ -171,7 +171,7 @@ class SiloClient:
|
||||
dest_path: str,
|
||||
progress_callback=None,
|
||||
) -> bool:
|
||||
"""Download a file from MinIO storage.
|
||||
"""Download a revision file from the server.
|
||||
|
||||
Args:
|
||||
progress_callback: Optional ``callable(bytes_downloaded, total_bytes)``.
|
||||
@@ -629,7 +629,7 @@ class SiloClient:
|
||||
return self._request("POST", f"/items/{pn}/revisions", data)
|
||||
|
||||
def has_file(self, part_number: str) -> Tuple[bool, Optional[int]]:
|
||||
"""Check if item has files in storage."""
|
||||
"""Check if any revision of this item has an associated file."""
|
||||
try:
|
||||
revisions = self.get_revisions(part_number)
|
||||
for rev in revisions:
|
||||
|
||||
Reference in New Issue
Block a user