Skip to content

Instantly share code, notes, and snippets.

Nick Achatz arthurdent

Block or report user

Report or block arthurdent

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am arthurdent on github.
  • I am x2a ( on keybase.
  • I have a public key ASCNGD9MEXiksRws6Sp0r8_XdCffRA-K3potNQ2Z_h7nqQo

To claim this, I am signing this object:

arthurdent / Get-FtpDirectory.ps1
Created Apr 1, 2015
Recursively list all files in FTP directory in PowerShell / List files (recursive)
View Get-FtpDirectory.ps1
$Server = ""
$User = ""
$Pass = ""
Function Get-FtpDirectory($Directory) {
# Credentials
$FTPRequest = [System.Net.FtpWebRequest]::Create("$($Server)$($Directory)")
$FTPRequest.Credentials = New-Object System.Net.NetworkCredential($User,$Pass)
$FTPRequest.Method = [System.Net.WebRequestMethods+FTP]::ListDirectoryDetails
You can’t perform that action at this time.