From 109917321a29e66148d35dbf7f60ccaa08dc384a Mon Sep 17 00:00:00 2001 From: Rhet Turnbull Date: Mon, 20 Feb 2023 08:54:44 -0800 Subject: [PATCH] Updated docstrings, [skip-ci] --- osxphotos/export_db_utils.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/osxphotos/export_db_utils.py b/osxphotos/export_db_utils.py index 2d25d550..51f7da42 100644 --- a/osxphotos/export_db_utils.py +++ b/osxphotos/export_db_utils.py @@ -564,7 +564,14 @@ def find_export_db_for_filepath(filepath: Union[str, pathlib.Path]) -> str: def get_uuid_for_filepath(filepath: Union[str, pathlib.Path]) -> str: - """Find the UUID for a given filepath, traversing the directory tree to find the export database""" + """Find the UUID for a given filepath, traversing the directory tree to find the export database. + + Args: + filepath (Union[str, pathlib.Path]): path to file or directory + + Returns: + str: UUID for file or "" if not found + """ filepath = pathlib.Path(filepath) if export_db_path := find_export_db_for_filepath(filepath): export_root = pathlib.Path(export_db_path).parent