When I download a file via ftp, the file remains in use.
using (Ftp client = new Ftp())
{
client.ServerCertificateValidate += ValidateCertificate;
client.Connect(adress);
client.AuthTLS();
client.Login(username, pass);
foreach (FtpItem item in client.GetList())
{
if (item.Name == "database.sqlite")
{
client.Download(
@"database.sqlite",
@"database\" + tanim + "_database.sqlite");
}
}
client.Close();
}