Skip to content

Commit e496356

Browse files
committed
Enhance AzCopy upload process: modify command to copy local directory without trailing slash and set log level to DEBUG
1 parent d6c549f commit e496356

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

function_app.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,9 @@ def upload_with_azcopy(local_dir):
9191
dest_url = os.environ.get('DZI_UPLOAD_DEST_URL')
9292
cmd = [
9393
"azcopy", "copy",
94-
f"{local_dir}/",
94+
f"{local_dir}",
9595
dest_url,
96-
"--recursive=true",
97-
"--log-level=DEBUG"
96+
"--recursive=true"
9897
]
9998
logger.info(f"AzCopy command: azcopy copy {cmd[2]} {dest_url} --recursive=true (using SAS token)")
10099
result = subprocess.run(cmd, capture_output=True, text=True)

0 commit comments

Comments
 (0)