W3cubDocs

/Drupal 8

constant FILE_STATUS_PERMANENT

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

Temporary files older than the system.file.temporary_maximum_age configuration value will be, if clean-up not disabled, removed during cron runs, but permanent files will not be removed during the file garbage collection process.

Related topics

File interface
Common file handling functions.

File

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

Code

const FILE_STATUS_PERMANENT = 1;

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!includes!file.inc/constant/FILE_STATUS_PERMANENT/8.1.x