No need to assume, the previous if statement can be used, albeit change it to use os.IsExist(err)