Hello, i am using the following piece of code to create a directory. The problem is that i do not get an error, but i do not also find the directory i justt created.
So, what am i doing wrong here? Should i take a break?
Public Function CreateDirectory(ByVal Dir As String) As Boolean
Dim myftprequest As Net.FtpWebRequest = CType(FtpWebRequest.Create(FTPSite + Dir), FtpWebRequest)
myftprequest.Credentials = New NetworkCredential(UserName, Password)
myftprequest.Method = WebRequestMethods.Ftp.MakeDirectory
Return True
End Function