43a44,92 > diff --git a/lib/backup_migrate_core/src/Filter/CompressionFilter.php b/lib/backup_migrate_core/src/Filter/CompressionFilter.php > index 679e6c5..7c7813b 100644 > --- a/lib/backup_migrate_core/src/Filter/CompressionFilter.php > +++ b/lib/backup_migrate_core/src/Filter/CompressionFilter.php > @@ -209,7 +209,7 @@ class CompressionFilter extends PluginBase implements FileProcessorInterface { > gzclose($fp_out); > > // Get the compressed filesize and set it. > - $fileszc = filesize(drupal_realpath($to->realpath())); > + $fileszc = filesize(\Drupal::service('file_system')->realpath($to->realpath())); > $to->setMeta('filesize', $fileszc); > } > } > @@ -262,7 +262,7 @@ class CompressionFilter extends PluginBase implements FileProcessorInterface { > bzclose($fp_out); > > // Get the compressed filesize and set it. > - $fileszc = filesize(drupal_realpath($to->realpath())); > + $fileszc = filesize(\Drupal::service('file_system')->realpath($to->realpath())); > $to->setMeta('filesize', $fileszc); > } > } > @@ -309,14 +309,14 @@ class CompressionFilter extends PluginBase implements FileProcessorInterface { > > if (class_exists('ZipArchive')) { > $zip = new \ZipArchive(); > - $res = $zip->open(drupal_realpath($to->realpath()), constant("ZipArchive::CREATE")); > + $res = $zip->open(\Drupal::service('file_system')->realpath($to->realpath()), constant("ZipArchive::CREATE")); > if ($res === TRUE) { > - $zip->addFile(drupal_realpath($from->realpath()), $from->getFullName()); > + $zip->addFile(\Drupal::service('file_system')->realpath($from->realpath()), $from->getFullName()); > } > $success = $zip->close(); > } > // Get the compressed filesize and set it. > - $fileszc = filesize(drupal_realpath($to->realpath())); > + $fileszc = filesize(\Drupal::service('file_system')->realpath($to->realpath())); > $to->setMeta('filesize', $fileszc); > > return $success; > @@ -334,7 +334,7 @@ class CompressionFilter extends PluginBase implements FileProcessorInterface { > $success = FALSE; > if (class_exists('ZipArchive')) { > $zip = new \ZipArchive(); > - if ($zip->open(drupal_realpath($from->realpath()))) { > + if ($zip->open(\Drupal::service('file_system')->realpath($from->realpath()))) { > $filename = ($zip->getNameIndex(0)); > if ($fp_in = $zip->getStream($filename)) { > while (!feof($fp_in)) { 71c120 < index 10f0979..2f988c2 100644 --- > index 10f0979..4c5b25e 100644 82a132,159 > @@ -68,13 +68,13 @@ class DrupalEncrypt extends PluginBase implements FileProcessorInterface { > > protected function _encryptFile (BackupFileReadableInterface $from, BackupFileWritableInterface $to) { > > - $path = drupal_realpath($from->realpath()); > - $out_path = drupal_realpath($to->realpath()); > + $path = \Drupal::service('file_system')->realpath($from->realpath()); > + $out_path = \Drupal::service('file_system')->realpath($to->realpath()); > > try { > > CryptoFile::encryptFileWithPassword($path, $out_path, $this->confGet('encrypt_password')); > - $fileszc = filesize(drupal_realpath($to->realpath())); > + $fileszc = filesize(\Drupal::service('file_system')->realpath($to->realpath())); > $to->setMeta('filesize', $fileszc); > return TRUE; > > @@ -89,8 +89,8 @@ class DrupalEncrypt extends PluginBase implements FileProcessorInterface { > > protected function _decryptFile (BackupFileReadableInterface $from, BackupFileWritableInterface $to) { > > - $path = drupal_realpath($from->realpath()); > - $out_path = drupal_realpath($to->realpath()); > + $path = \Drupal::service('file_system')->realpath($from->realpath()); > + $out_path = \Drupal::service('file_system')->realpath($to->realpath()); > > try { >