1. 4.6.x includes/file.inc FILE_EXISTS_ERROR
  2. 4.7.x includes/file.inc FILE_EXISTS_ERROR
  3. 5.x includes/file.inc FILE_EXISTS_ERROR
  4. 6.x includes/file.inc FILE_EXISTS_ERROR
  5. 7.x includes/file.inc FILE_EXISTS_ERROR

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

Related topics

FileCopyTest::testExistingError in modules/simpletest/tests/file.test
Test that copying over an existing file fails when FILE_EXISTS_ERROR is specified.
FileCopyTest::testNormal in modules/simpletest/tests/file.test
Test file copying in the normal, base case.
FileDirectoryTest::testFileDestination in 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 modules/simpletest/tests/file.test
Test that moving onto an existing file fails when FILE_EXISTS_ERROR is specified.
FileMoveTest::testNormal in modules/simpletest/tests/file.test
Move a normal file.

... See full list


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


define('FILE_EXISTS_ERROR', 2);