constant FILE_EXISTS_RENAME

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

Related topics

18 uses of FILE_EXISTS_RENAME
CopyTest::testExistingRename in drupal/core/modules/file/lib/Drupal/file/Tests/CopyTest.php
Test renaming when copying over a file that already exists.
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.
FileTestForm::buildForm in drupal/core/modules/file/tests/file_test/lib/Drupal/file_test/Form/FileTestForm.php
Form constructor.
file_copy in drupal/core/modules/file/file.module
Copies a file to a new location and adds a file record to the database.
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 119
API for handling file uploads and server file management.

Code

const FILE_EXISTS_RENAME = 0;