You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Powershell - How to upload entire local directory recursively #915
Is it possible to use the powershell cmdlet to upload a directory recursively?
I have a folder with an unknown number of subfolders and files. It is the output from a documentation generator.
I need to basically upload the entire folder as-is to an FTP site.
I have this so far, but it seems to flatten out the folder tree completely, and all the files end up in the "Upload" folder of my ftp site:
This PS script works, but it's a bit of a hack. I'm using the "Transferto" powershell module because it wraps up both FluentFTP and SSH.NET. https://github.com/EvotecIT/Transferetto
I work with both FTPS and SFTP servers, so having it all wrapped in a single module just seems easier.
I have a help doc generator that spits out a static html site.
I needed to upload the entire local folder tree to a subfolder on a website.
It would be nice to be able to avoid dropping down to the .Net classes/objects directly, but this works for my needs.
Activity
philsayersCDS commentedon Aug 30, 2022
This PS script works, but it's a bit of a hack. I'm using the "Transferto" powershell module because it wraps up both FluentFTP and SSH.NET.
https://github.com/EvotecIT/Transferetto
I work with both FTPS and SFTP servers, so having it all wrapped in a single module just seems easier.
I have a help doc generator that spits out a static html site.
I needed to upload the entire local folder tree to a subfolder on a website.
It would be nice to be able to avoid dropping down to the .Net classes/objects directly, but this works for my needs.
This is what I ended up with:
robinrodricks commentedon Sep 19, 2022
Added to the bucket list. We will pick this up as and when we have free time. Comment on this issue if you want us to prioritize it. Thanks!