FILE_EXISTS_RENAME

Same name in other branches
  1. 8.9.x core/includes/file.inc \FILE_EXISTS_RENAME

Flag for dealing with existing files: Appends number until name is unique.

Related topics

19 uses of FILE_EXISTS_RENAME
FileCopyTest::testExistingRename in modules/simpletest/tests/file.test
Test renaming when copying over a file that already exists.
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::testExistingRename in modules/simpletest/tests/file.test
Test renaming when moving onto a file that already exists.
FileSaveDataTest::testExistingRename in modules/simpletest/tests/file.test
Test file_save_data() when renaming around an existing file.
FileSaveUploadTest::testExistingRename in modules/simpletest/tests/file.test
Test renaming when uploading over a file that already exists.

... See full list

File

includes/file.inc, line 51

Code

define('FILE_EXISTS_RENAME', 0);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.