Sharepoint Subfolder download

Copper Contributor

Hi All,

I am trying to download sharepoint subfolder with all of its contents(basically folders/files)

https://pastebin.com/3ZmPHMFY

With the Script/Function above from the link, I have been able to specify folder "Shared Documents" on a site page and get all subfolders and files within it however struggling to get to desired subfolder and get it's subfolders and files from it

 

My requirement : Sharepoint has 7 Subfolders for my destination subfolder where it has Month wise SubFolders again lets say Jan 20, Feb 20, Mar 20

 

I am interested in downloading the files from these month-wise subfolders

 

I want to exclude unwanted files/folders such as "Forms" or "Documents"

 

I tried the below script/function as well and it doesnt get me anything

https://pastebin.com/Dg4ZSdfy

 

Please help me as I feel I am stuck/missing something

Thanks

Archer

 
0 Replies