constant FILE_EXISTS_ERROR

Flag for dealing with existing files: Do nothing and return FALSE.

Related topics

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.

... See full list

File

drupal/core/includes/file.inc, line 129
API for handling file uploads and server file management.

Code

const FILE_EXISTS_ERROR = 2;