Don't rely on fileobject attributes