12 uses of FILE_EXISTS_ERROR

CopyTest::testExistingError in drupal/core/modules/file/lib/Drupal/file/Tests/CopyTest.php
Test that copying over an existing file fails when FILE_EXISTS_ERROR is specified.
CopyTest::testNormal in drupal/core/modules/file/lib/Drupal/file/Tests/CopyTest.php
Test file copying in the normal, base case.
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.
FileMoveTest::testNormal in drupal/core/modules/system/lib/Drupal/system/Tests/Image/FileMoveTest.php
Tests moving a randomly generated image.
file_destination in drupal/core/includes/file.inc
Determines the destination path for a file.
MoveTest::testExistingError in drupal/core/modules/file/lib/Drupal/file/Tests/MoveTest.php
Test that moving onto an existing file fails when FILE_EXISTS_ERROR is specified.
MoveTest::testNormal in drupal/core/modules/file/lib/Drupal/file/Tests/MoveTest.php
Move a normal file.
SaveDataTest::testExistingError in drupal/core/modules/file/lib/Drupal/file/Tests/SaveDataTest.php
Test that file_save_data() fails overwriting an existing file.
SaveUploadTest::testExistingError in drupal/core/modules/file/lib/Drupal/file/Tests/SaveUploadTest.php
Test for failure 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.