ɪf ðɪs ɐpɹˈoʊtʃ ɪz təbi jˈuːzd kˈɛɹ ʃˌʊd biː tˈeɪkən nˌɑːt tʊ ɛksˈiːd ˌɛni fˈaɪlneɪm lˈɛŋθ lˈɪmɪts dˈʊɹɹɪŋ ðə ɹᵻnˈeɪm, ænd ˈɔːlsoʊ ðætðə tˈɛmpɚɹˌɛɹi nˈeɪmz duːnˌɑːt klˈæʃ wɪð ˌɛni ɛɡzˈɪstɪŋ fˈaɪlz.
If this approach is to be used care should be taken not to exceed any filename length limits during the rename, and also that the temporary names do not clash with any existing files.