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

22 uses of FILE_STATUS_PERMANENT
FileFieldTestCase::assertFileIsPermanent in drupal/modules/file/tests/file.test
Asserts that a file's status is set to permanent in the database.
FileFieldWidgetTestCase::doTestTemporaryFileRemovalExploit in drupal/modules/file/tests/file.test
Helper for testing exploiting the temporary file removal using fid.
FilePrivateTestCase::testPrivateFile in drupal/modules/file/tests/file.test
Tests file access for file uploaded to a private node.
FileSaveDataTest::testExistingRename in drupal/modules/simpletest/tests/file.test
Test file_save_data() when renaming around an existing file.
FileSaveDataTest::testExistingReplace in drupal/modules/simpletest/tests/file.test
Test file_save_data() when replacing an existing file.

... See full list

File

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

Code

define('FILE_STATUS_PERMANENT', 1);