mirror of
https://github.com/proxysu/ProxySU.git
synced 2024-11-25 14:46:08 +03:00
测试上传下载文件更改图标
This commit is contained in:
parent
b27f76efe0
commit
1220a76ae4
@ -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.
Loading…
Reference in New Issue
Block a user