다음 코드와 같이 작성했습니다. 하지만이 코드를 사용할 수 없습니다 ...sharpssh를 사용하여 원격 파일의 이름을 바꿀 수 없습니다
내가 실행할 때 발생합니다. 누군가가 뭔가를 아는 경우 나에게 충고 pls을 제공하십시오 ... 미리 감사드립니다. 오류는 다음과 같은 장소를 발생
void sftp_OnTransferEnd(string src, string dst, int transferredBytes
, int totalBytes, string message)
{
if (sftp == null)
{
sftp = new Sftp(Const.SFTP_HOST, Const.SFTP_USER, Const.SFTP_PASSWORD);
sftp.Connect();
}
SftpChannel.rename("file/123_Uploading.zip", "file/123_Finished.zip");
}
--------------------------------------------
Sftp.cs
public void Rename(string oldPath, string newPath)
{
SftpChannel.rename(oldPath, newPath);
}
---------------------------------------------
...
---------------------------------------------------------
ChannelSftp.cs
public void rename(String oldpath, String newpath)
{
・
・
・
int i=buf.getInt(); << i == 4
if(i==SSH_FX_OK) return;
throwStatusError(buf, i); << throw error
catch(Exception e)
{
if(e is SftpException) throw (SftpException)e; << thrown error (id >> 4, message >> Failure)
throw new SftpException(SSH_FX_FAILURE, "");
}
}
를 사용할 수 없음 -> http://bitbucket.org/mattgwagner/sharpssh을 – MattGWagner