Skip to content

Commit

Permalink
Document zero bytes returned in UAL_RDM is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
HafeezOJ committed Oct 1, 2024
1 parent 1babc77 commit 823efc0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions figshare/Utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ def calculate_ual_rdm_size(config, article_id: int, version: str):
:param version: Article version in the 'v0{version number}'
:type: str
:return: Size of version UAL_RDM folder in bytes
:return: Size of version UAL_RDM folder in bytes. Returns zero bytes if any of the
folders in the path to UAL_RDM is missing
:rtype: int
"""
article_dir = ""
Expand Down Expand Up @@ -314,7 +315,7 @@ def calculate_payload_size(config: dict, version_data: dict) -> int:
:param version_data: Version response from figshare
:type: dict
:return: Size of payload in bytes
:return: Size of payload in bytes. Returns zero bytes if UAL_RDM is not found
:rtype: int
"""

Expand Down

0 comments on commit 823efc0

Please sign in to comment.