title: No such file or directory, Weird Or What?
body: <p>So,</p>
  
  <p>I've been coding a Downloader, and every time I run it, it says: </p>
  
  <pre><code>Traceback (most recent call last):
    File "C:\Python27\Downloader.py", line 7, in &lt;module&gt;
      f = open('c:\\users\%USERNAME%\AppData\Roaming\.minecraft\mods\CreeperCraft.zip', 'wb+')
  IOError: [Errno 2] No such file or directory: 'c:\\users\\%USERNAME%\\AppData\\Roaming\\.minecraft\\mods\\CreeperCraft.zip'
  </code></pre>
  
  <p>I now, your probably going to say, create a file, but I want the  script to create the file.</p>
  
  <p>So, can someone tell me what to fix? This is the code:</p>
  
  <pre><code>import urllib2
  import os
  import shutil
  url = "https://dl.dropbox.com/u/29251693/CreeperCraft.zip"
  file_name = url.split('/')[-1]
  u = urllib2.urlopen(url)
  f = open('c:\\users\%USERNAME%\AppData\Roaming\.minecraft\mods\CreeperCraft.zip', 'wb+')
  meta = u.info()
  file_size = int(meta.getheaders("Content-Length")[0])
  print "Downloading: %s Bytes: %s" % (file_name, file_size)
  file_size_dl = 0
  block_sz = 8192
  while True:
      buffer = u.read(block_sz)
      if not buffer:
          break
      file_size_dl += len(buffer)
      f.write(buffer)
      status = r"%10d  [%3.2f%%]" % (file_size_dl, file_size_dl * 100. / file_size)
      status = status + chr(8)*(len(status)+1)
      print status,
  f.close()
  </code></pre>