I initially set the workspace environment to a directory and included the option, arcpy.env.overwriteOutput=True, but at some point in my script, I convert a shapefile in that directory to a geodatabase file. When I do this, I get the error:
File (filename) already exists.
I assume that because the overwriteOutput option is specified for the workspace, it doesn't apply to the geodatabase within that directory. However, I also tried to change the environment to the geodatabase and set the overwrite option to true again. The error remained.
How can I fix this (without deleting the file)?