I'm creating a script in C# to download files from a FTP, and I'm using the method client.DownloadFile(), and, when I execute the program I get an error:
Access to "D:/DESTINO" is denied.
// Creates WebClient instance
WebClient client = new WebClient();
client.Credentials = new NetworkCredential("userxxx", "passwordxxx");
// Download files and saves at
client.DownloadFile("ftp://ftpurl/file.xlsx", @"D:\DESTINO");
Thank you!