Downloading images in temporary directory

Hi,

My app downloads images into the temporary directory and I am wondering how will iOS/Android app behave if a file with the same name already exists.

For example: The app downloaded an image named 1.jpg into the temporary folder. If another image is dowloaded later with the same name as 1.jpg, will it be overwritten?

thanks

It will overwrite it.

Rob

Unless, you have the file locked.  i.e. If you’re displaying an image sourced from the temporary directory, you won’t be able to overwrite it till you destroy the display object that is using that image.

Thanks for the replies and help: Rob and roaminggamer.

It will overwrite it.

Rob

Unless, you have the file locked.  i.e. If you’re displaying an image sourced from the temporary directory, you won’t be able to overwrite it till you destroy the display object that is using that image.

Thanks for the replies and help: Rob and roaminggamer.