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
I change the code as:
This isn't working yet!
My code of GetFiles is the following
Some suggestions?
Thanks
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
transferOptions.ResumeSupport.State = TransferResumeSupportState.Off;
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());
Thanks