18 uses of FILE_EXISTS_RENAME

CopyTest::testExistingRename in drupal/core/modules/file/lib/Drupal/file/Tests/CopyTest.php
Test renaming when copying over a file that already exists.
DirectoryTest::testFileDestination in drupal/core/modules/system/lib/Drupal/system/Tests/File/DirectoryTest.php
This will test the filepath for a destination based on passed flags and whether or not the file exists.
file_copy in drupal/core/modules/file/file.module
Copies a file to a new location and adds a file record to the database.
file_destination in drupal/core/includes/file.inc
Determines the destination path for a file.
file_move in drupal/core/modules/file/file.module
Moves a file to a new location and update the file's database entry.
file_save_data in drupal/core/modules/file/file.module
Saves a file to the specified destination and creates a database entry.
ImageDimensionsTest::testImageDimensions in drupal/core/modules/image/lib/Drupal/image/Tests/ImageDimensionsTest.php
Test styled image dimensions cumulatively.
ImageStylesPathAndUrlTest::_testImageStyleUrlAndPath in drupal/core/modules/image/lib/Drupal/image/Tests/ImageStylesPathAndUrlTest.php
Test image_style_url().
ImageThemeFunctionTest::testImageFormatterTheme in drupal/core/modules/image/lib/Drupal/image/Tests/ImageThemeFunctionTest.php
Tests usage of the image field formatters.
ImageThemeFunctionTest::testImageStyleTheme in drupal/core/modules/image/lib/Drupal/image/Tests/ImageThemeFunctionTest.php
Tests usage of the image style theme function.
MoveTest::testExistingRename in drupal/core/modules/file/lib/Drupal/file/Tests/MoveTest.php
Test renaming when moving onto a file that already exists.
SaveDataTest::testExistingRename in drupal/core/modules/file/lib/Drupal/file/Tests/SaveDataTest.php
Test file_save_data() when renaming around an existing file.
SaveUploadTest::testExistingRename in drupal/core/modules/file/lib/Drupal/file/Tests/SaveUploadTest.php
Test renaming when uploading over a file that already exists.
UnmanagedCopyTest::testNormal in drupal/core/modules/system/lib/Drupal/system/Tests/File/UnmanagedCopyTest.php
Copy a normal file.
UnmanagedCopyTest::testOverwriteSelf in drupal/core/modules/system/lib/Drupal/system/Tests/File/UnmanagedCopyTest.php
Copy a file onto itself.
UnmanagedMoveTest::testNormal in drupal/core/modules/system/lib/Drupal/system/Tests/File/UnmanagedMoveTest.php
Move a normal file.
UnmanagedMoveTest::testOverwriteSelf in drupal/core/modules/system/lib/Drupal/system/Tests/File/UnmanagedMoveTest.php
Try to move a file onto itself.
_file_test_form in drupal/core/modules/file/tests/file_test/file_test.module
Form to test file uploads.