title: Why do I get zip error while creating a file copy program?
body: <p>I'm creating a program for copying files to directories but I'm getting an error:</p>
  
  <blockquote>
    <p>Unable to find threadStateIndex for the current thread. curPyThread:
    0x7f8090c03050</p>
    
    <p>zip error: Nothing to do! (try: zip -qr
    Users/ketiaslanishvili/Desktop/20190811154406.zip . -i
    Users/ketiaslanishvili/Desktop/Video/1.mp4)</p>
  </blockquote>
  
  <p>My code :</p>
  
  <pre><code>import os
  import time
  
  
  source = ['"Users/ketiaslanishvili/Desktop/Video"' ]
  
  target_dir = 'Users/ketiaslanishvili/Desktop'
  target = target_dir + os.sep + time.strftime('%Y%m%d%H%M%S')+'.zip'
  zip_command = "zip -qr {0} {1}" .format(target, '' .join(source))
  
  
  if os.system(zip_command) == 0:
      print('Completed', target)
  else:
      print('Unsucsesful:((((((')
  </code></pre>