constant FILE_STATUS_PERMANENT

Indicates that the file is permanent and should not be deleted.

Temporary files older than DRUPAL_MAXIMUM_TEMP_FILE_AGE will be removed during cron runs, but permanent files will not be removed during the file garbage collection process.

Related topics

17 uses of FILE_STATUS_PERMANENT
FileFieldTestBase::assertFileIsPermanent in drupal/core/modules/file/lib/Drupal/file/Tests/FileFieldTestBase.php
Asserts that a file's status is set to permanent in the database.
FileStorageController::retrieveTemporaryFiles in drupal/core/modules/file/lib/Drupal/file/FileStorageController.php
Retrieve temporary files that are older than DRUPAL_MAXIMUM_TEMP_FILE_AGE.
FileUsageBase::add in drupal/core/modules/file/lib/Drupal/file/FileUsage/FileUsageBase.php
Implements Drupal\file\FileUsage\FileUsageInterface::add().
file_file_download in drupal/core/modules/file/file.module
Implements hook_file_download().
file_managed_file_validate in drupal/core/modules/file/file.module
Render API callback: Validates the managed_file element.

... See full list

File

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

Code

const FILE_STATUS_PERMANENT = 1;