title: Compiled Python writing to Program Files
body: <p>I have written a program that creates several sqlite3 database temp files. In development, I just stored them in a folder in the same folder with the src package. I overlooked the fact that you need admin access when the code is compiled and run from Program Files. (I know temp files in Program Files is bad practice, too)</p>
  
  <p>The issue is: there is no issue. I don't get an <code>IOError: [Errno 13] Permission denied:</code> or warning of any kind. Furthermore, if I go to the folder where there should be temp files, there aren't any.</p>
  
  <p>If I add a line like</p>
  
  <pre><code>print os.path.exists(r'C:\Program Files (x86)\ProgramName\temp\filename.db')
  </code></pre>
  
  <p>or </p>
  
  <pre><code>print os.listdir(r'C:\Program Files (x86)\ProgramName\temp')
  </code></pre>
  
  <p>to my program, it shows that the files are there, but the don't exist in explorer, cmd or idle. They <em>do,</em> however, show up in cygwin.</p>
  
  <p>I've shown hidden file/folders and they don't show up.</p>
  
  <p>If I copy the temp folder using explorer, the files do not tag along. If I copy the folder using cygwin, they do. They also become visible to explorer.</p>
  
  <p>Has anyone else experienced this or know what's going on?</p>