PowerShell FTP download files and subfolders

前端 未结 2 734
没有蜡笔的小新
没有蜡笔的小新 2020-11-28 09:39

I like to write a PowerShell script to download all files and subfolders from my FTP server. I found a script to download all files from on

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-28 10:03

    For retrieving files /folder from FTP via powerShell I wrote some functions, you can get even hidden stuff from FTP.

    Example for getting all files and subfolders (even hidden ones) in a specific folder:

    Get-FtpChildItem -ftpFolderPath "ftp://myHost.com/root/leaf/" -userName "User" -password "pw" -Directory -File
    

    You can just copy the functions from the following module without needing any 3rd library installed: https://github.com/AstralisSomnium/PowerShell-No-Library-Just-Functions/blob/master/FTPModule.ps1

提交回复
热议问题