You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by go...@apache.org on 2025/05/01 15:13:27 UTC
(airflow-site-archive) branch main updated: Append to local path when any specific document name provides
This is an automated email from the ASF dual-hosted git repository.
gopidesu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow-site-archive.git
The following commit(s) were added to refs/heads/main by this push:
new 400d4a0b58 Append to local path when any specific document name provides
400d4a0b58 is described below
commit 400d4a0b581eea88940a3fd88a5653756583ee61
Author: Pavan Kumar <go...@gmail.com>
AuthorDate: Thu May 1 16:13:18 2025 +0100
Append to local path when any specific document name provides
---
scripts/s3_to_github.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/scripts/s3_to_github.py b/scripts/s3_to_github.py
index 0e92634842..ff126af50f 100644
--- a/scripts/s3_to_github.py
+++ b/scripts/s3_to_github.py
@@ -77,7 +77,8 @@ if __name__ == "__main__":
console.print(f"[blue] Document folder {document_folder} exists in bucket {args.bucket_path}.[/]")
source_prefix = syncer.prefix.rstrip("/") + "/" + document_folder
source = f"s3://{syncer.bucket_name}/{syncer.prefix}{document_folder}"
- syncer.sync(source=source, destination=args.local_path)
+ local_path = args.local_path.rstrip("/") + "/" + document_folder
+ syncer.sync(source=source, destination=local_path)
sys.exit(0)
else:
console.print(f"[red] Document folder {document_folder} does not exist in bucket {args.bucket_path}.[/]")