How do I get the free storage space on the server?

How do I get the free storage space on the server? Is that possible with ComponentPro.SFTP? sftp> df -h So something like this: Dim FreeMem As Long = SFTPClient.GetFreeMemory ("/ usr / share / remarkable / templates /") Thank you very much!
asked 12/28/2021 7:41:00 PM
add a comment

1 Answers

hi Roland Please check this link [][1] [1]:
answered 12/30/2021 5:29:16 PM
  Do you have a code example? RENCI does it this way: Dim connInfo As New Renci.SshNet.PasswordConnectionInfo(My.Settings.ip, "root", My.Settings.password) Dim sshClient As New Renci.SshNet.SshClient(connInfo) Dim cmd As Renci.SshNet.SshCommand sshClient.Connect() cmd = sshClient.RunCommand("df -h") 'listet alle remoteFolders mit Name, Size, Used, Available, Use% und Mounted on sshClient.Disconnect() Roland 12/31/2021 9:19:10 AM
  Ok, i got it. Thank you very much! Roland 12/31/2021 9:45:22 AM
add a comment

Your Answer

Not the answer you're looking for? Browse other questions tagged sftp or ask your own question.