You are here

public function WritableStreamBackupFile::close in Backup and Migrate 5.0.x

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

Overrides ReadableStreamBackupFile::close

1 call to WritableStreamBackupFile::close()
WritableStreamBackupFile::writeAll in src/Core/File/WritableStreamBackupFile.php
Open the file, writes the given contents and closes it.

File

src/Core/File/WritableStreamBackupFile.php, line 77

Class

WritableStreamBackupFile
A file object which represents an existing PHP stream with read/write.

Namespace

Drupal\backup_migrate\Core\File

Code

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

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