You are here

constant FILE_EXISTS_RENAME in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/includes/file.inc \FILE_EXISTS_RENAME

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

Related topics

21 uses of FILE_EXISTS_RENAME
CopyTest::testExistingRename in core/modules/file/src/Tests/CopyTest.php
Test renaming when copying over a file that already exists.
DirectoryTest::testFileDestination in core/modules/system/src/Tests/File/DirectoryTest.php
This will test the filepath for a destination based on passed flags and whether or not the file exists.
EntityFile::getOverwriteMode in core/modules/file/src/Plugin/migrate/destination/EntityFile.php
Determines how to handle file conflicts.
EntityFileTest::testGetOverwriteMode in core/modules/file/src/Tests/Migrate/EntityFileTest.php
Tests various invocations of the getOverwriteMode() method.
EntityFileTest::testWriteFile in core/modules/file/src/Tests/Migrate/EntityFileTest.php
Tests various invocations of the writeFile() method.

... See full list

File

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

Code

const FILE_EXISTS_RENAME = 0;