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)
The issue is: there is no issue. I don't get an IOError: [Errno 13] Permission denied:
or warning of any kind. Furthermore, if I go to the folder where there should be temp files, there aren't any.
If I add a line like
print os.path.exists(r'C:\Program Files (x86)\ProgramName\temp\filename.db')
or
print os.listdir(r'C:\Program Files (x86)\ProgramName\temp')
to my program, it shows that the files are there, but the don't exist in explorer, cmd or idle. They do, however, show up in cygwin.
I've shown hidden file/folders and they don't show up.
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.
Has anyone else experienced this or know what's going on?