26 uses of FILE_EXISTS_REPLACE

CopyTest::testExistingReplace in drupal/core/modules/file/lib/Drupal/file/Tests/CopyTest.php
Test replacement 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.
drupal_build_css_cache in drupal/core/includes/common.inc
Aggregates and optimizes CSS files into a cache file in the files directory.
drupal_build_js_cache in drupal/core/includes/common.inc
Aggregates JavaScript files into a cache file in the files directory.
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.
file_save_upload in drupal/core/includes/file.inc
Saves a file upload to a new location.
image_gd_save in drupal/core/modules/system/image.gd.inc
Image toolkit callback: Writes an image resource to a destination file.
LocaleExportTest::setUp in drupal/core/modules/locale/lib/Drupal/locale/Tests/LocaleExportTest.php
Sets up a Drupal site for running functional and integration tests.
LocaleFileImportStatus::setUp in drupal/core/modules/locale/lib/Drupal/locale/Tests/LocaleFileImportStatus.php
Sets up a Drupal site for running functional and integration tests.
LocaleImportFunctionalTest::setUp in drupal/core/modules/locale/lib/Drupal/locale/Tests/LocaleImportFunctionalTest.php
Sets up a Drupal site for running functional and integration tests.
MoveTest::testExistingReplace in drupal/core/modules/file/lib/Drupal/file/Tests/MoveTest.php
Test replacement when moving onto a file that already exists.
MoveTest::testExistingReplaceSelf in drupal/core/modules/file/lib/Drupal/file/Tests/MoveTest.php
Test replacement when moving onto itself.
SaveDataTest::testExistingReplace in drupal/core/modules/file/lib/Drupal/file/Tests/SaveDataTest.php
Test file_save_data() when replacing an existing file.
SaveUploadTest::setUp in drupal/core/modules/file/lib/Drupal/file/Tests/SaveUploadTest.php
Sets up a Drupal site for running functional and integration tests.
SaveUploadTest::testExistingReplace in drupal/core/modules/file/lib/Drupal/file/Tests/SaveUploadTest.php
Test replacement when uploading over a file that already exists.
SaveUploadTest::testHandleDangerousFile in drupal/core/modules/file/lib/Drupal/file/Tests/SaveUploadTest.php
Test dangerous file handling.
SaveUploadTest::testHandleExtension in drupal/core/modules/file/lib/Drupal/file/Tests/SaveUploadTest.php
Test extension handling.
UnmanagedMoveTest::testOverwriteSelf in drupal/core/modules/system/lib/Drupal/system/Tests/File/UnmanagedMoveTest.php
Try to move a file onto itself.
UnmanagedSaveDataTest::testFileSaveData in drupal/core/modules/system/lib/Drupal/system/Tests/File/UnmanagedSaveDataTest.php
Test the file_unmanaged_save_data() function.
update_manager_file_get in drupal/core/modules/update/update.manager.inc
Copies a file from the specified URL to the temporary directory for updates.
update_manager_install_form_submit in drupal/core/modules/update/update.manager.inc
Form submission handler for update_manager_install_form().
user_update_8011 in drupal/core/modules/user/user.install
Create user picture field.
_color_save_stylesheet in drupal/core/modules/color/color.module
Saves the rewritten stylesheet to disk.