You are here

function WritableStreamBackupFile::close in Backup and Migrate 8.4

Update the file time and size when the file is closed.

Overrides ReadableStreamBackupFile::close

1 call to WritableStreamBackupFile::close()
WritableStreamBackupFile::writeAll in lib/backup_migrate_core/src/File/WritableStreamBackupFile.php
A shorthand function to open the file, write the given contents and close the file. Used for small amounts of data that can fit in memory.

File

lib/backup_migrate_core/src/File/WritableStreamBackupFile.php, line 85

Class

WritableStreamBackupFile
Class TempFile.

Namespace

BackupMigrate\Core\File

Code

function close() {
  parent::close();

  // If the file has been modified, update the stats from disk.
  if ($this->dirty) {
    $this
      ->_loadFileStats();
    $this->dirty = FALSE;
  }
}