Skip to content

Commit 3023f93

Browse files
Robert Denhamclaude
andcommitted
Add docstring to _file_key
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 3f9fd76 commit 3023f93

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

filesender/api.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ def iter_files(paths: Iterable[Path], root: Optional[Path] = None) -> Iterable[T
100100
yield str(path.relative_to(root)), path
101101

102102
def _file_key(file_info: response.File) -> str:
103+
"""
104+
Returns the per-file upload key, checking both ``uid`` (older FileSender servers)
105+
and ``puid`` (newer FileSender servers).
106+
"""
103107
if "uid" in file_info:
104108
return file_info["uid"]
105109
if "puid" in file_info:

0 commit comments

Comments
 (0)