1
0
mirror of https://github.com/proxysu/ProxySU.git synced 2024-11-22 13:16:09 +03:00

测试上传下载文件更改图标

This commit is contained in:
ProxySU 2020-03-13 00:20:36 +08:00
parent b27f76efe0
commit 1220a76ae4
4 changed files with 1 additions and 0 deletions

View File

@ -391,6 +391,7 @@ namespace ProxySU
sftpClient.Connect(); sftpClient.Connect();
MessageBox.Show("sftp信息1" + sftpClient.ConnectionInfo.ServerVersion.ToString()); MessageBox.Show("sftp信息1" + sftpClient.ConnectionInfo.ServerVersion.ToString());
sftpClient.UploadFile(File.OpenRead("config\\config.json"),"/root/config.json", true); sftpClient.UploadFile(File.OpenRead("config\\config.json"),"/root/config.json", true);
sftpClient.DownloadFile("/root/id_rsa.pub", File.Create("config\\server_config.json"));
MessageBox.Show("sftp信息"+sftpClient.ConnectionInfo.ServerVersion.ToString()); MessageBox.Show("sftp信息"+sftpClient.ConnectionInfo.ServerVersion.ToString());
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 264 KiB

Binary file not shown.

Binary file not shown.