I'm confused when it pertains to the success of this. Does this depend on the file existing? If yes, where is the file created prior to this being called?