Hi,
I have powershell script where I can sucesfully retreive the file from the BitBucket repo on my local machine. This works perfectly fine for my one file.
<span>$DOWNLOAD_PATH </span><span>=</span> <span>"C:\bitbucket\"
$uri = "</span><span>https</span><span>://</span><span>bitbucket</span><span>.</span><span>org</span><span>.</span><span>dev</span><span>/</span><span>projects</span><span>/</span><span>TEST</span><span>/</span><span>repos</span><span>/</span><span>fa</span><span>/</span><span>browse</span><span>/</span><span>Packages</span><span>/</span><span>test1</span><span>.</span><span>txt</span><span>"
$API_KEY="</span><span>ZTUxhso</span><span>"
Invoke-WebRequest -Headers @{Authorization=$("</span><span>Basic</span> <span>{</span><span>0</span><span>}</span><span>" -f $API_KEY)} -Uri $uri -OutFile $DOWNLOAD_PATH\test1.txt</span>But my folder Packages contains more files and it contains subfolders which have inside it even more files. I would not like to hardcode all the files and subfolders within it but I really could not find how should I specify this in order to work.