Cannot turning off ResumeSupport, trouble downloading files

Advertisement

ugaciaka
Joined:
Posts:
3

Cannot turning off ResumeSupport, trouble downloading files

Hi,

I need help about this topic.

Since the system administrator change permissions of remote directory I tried to solve the following
Cannot open remote file 'myfile.exe'.
Permission denied.
Error code: 3
Error message from server: Permission denied
I change the code as:
transferOptions.ResumeSupport.State = TransferResumeSupportState.Off;
This isn't working yet!

My code of GetFiles is the following
var transferResult =
    session.GetFiles(SftpPath, $"{UploadToLocalPath}\\", RemoveRemoteFiles, transferOptions);
 
if (!transferResult.IsSuccess)
{
    _getFilesOutput.ExceptionMessages = transferResult.Failures.Select(e => e.Message).ToList();
    _getFilesOutput.IsFailed = true;
}
 
_getFilesOutput.DownloadedLocalFiles.Clear();
 
(_getFilesOutput.DownloadedLocalFiles as List<string>)?.AddRange(transferResult.Transfers
    .Select(p => p.FileName).ToList());
Some suggestions?

Thanks

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum