title: How to compress a file with shutil.make_archive in python?
body: <p>I want to compress one text file using <code>shutil.make_archive</code> command. I am using the following command:</p>
  
  <pre><code>shutil.make_archive('gzipped'+fname, 'gztar', os.path.join(os.getcwd(), fname))
  
  OSError: [Errno 20] Not a directory: '/home/user/file.txt'
  </code></pre>
  
  <p>I tried several variants but it keeps trying to compress the whole folders. How to do it correctly? </p>