constant FILE_EXISTS_ERROR

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

Related topics

12 uses of FILE_EXISTS_ERROR
FileCopyTest::testExistingError in drupal/modules/simpletest/tests/file.test
Test that copying over an existing file fails when FILE_EXISTS_ERROR is specified.
FileCopyTest::testNormal in drupal/modules/simpletest/tests/file.test
Test file copying in the normal, base case.
FileDirectoryTest::testFileDestination in drupal/modules/simpletest/tests/file.test
This will test the filepath for a destination based on passed flags and whether or not the file exists.
FileMoveTest::testExistingError in drupal/modules/simpletest/tests/file.test
Test that moving onto an existing file fails when FILE_EXISTS_ERROR is specified.
FileMoveTest::testNormal in drupal/modules/simpletest/tests/file.test
Move a normal file.

... See full list

File

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

Code

define('FILE_EXISTS_ERROR', 2);