This commit is contained in:
2026-03-06 00:57:50 -08:00
parent a29d7508ec
commit d7e42b9563
4 changed files with 1121 additions and 8 deletions

View File

@@ -109,6 +109,14 @@ class Download_File(Cmdlet):
debug(f"[download-file] run invoked with args: {list(args)}")
return self._run_impl(result, args, config)
@staticmethod
def _path_from_download_result(result_obj: Any) -> Path:
"""Normalize downloader return values to a concrete filesystem path."""
resolved = coerce_to_path(result_obj)
if resolved is None:
raise DownloadError("Could not determine downloaded file path")
return resolved
def _process_explicit_urls(
self,
*,