title: Get available disk space from SFTP Server
body: <p>I’m trying to retrieve the free available disk space I have on my SFTP server. The SFTP server runs on Windows platform and my SFTP client is running on a Linux Docker container. I am using SFTP Paramiko API. I do not have ssh installed on my docker container. Anyone got any idea?</p>
  <p>I’m trying to get the free space of drive <code>C</code> of my SFTP server running on Windows.</p>
  <p>This piece of code below runs in my Docker container.</p>
  <pre><code>def get_free_space(host, port, user, pwd):
      client = paramiko.client.sshclient()
      client.connect(host, user, pwd)
      stdin, stdout, stderr =    client.exec_command(“df -h” + “C:/“) 
      print(stdout.readlines())
      print(stderr.readlines())
  </code></pre>
  <p>However, there is this error stating</p>
  <blockquote>
  <p>'df' is not recognized as an internal or external command, operable program or batch file.</p>
  </blockquote>