Commit 85e03aef authored by codebymikey's avatar codebymikey Committed by Damien McKenna
Browse files

Issue #3169587 by codebymikey, DamienMcKenna, solideogloria: Warning:...

Issue #3169587 by codebymikey, DamienMcKenna, solideogloria: Warning: opendir(private://backup_migrate/scheduled): failed to open dir.
parent 35daaa2e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -22,6 +22,8 @@ By DamienMcKenna: Updated CHANGELOG.txt for recent 5.0.x changes already present
#3236380 by gabrielda, larisse, DamienMcKenna: Send email on success.
#3216193 by hmendes, larisse, DamienMcKenna: Improve error handling when backup
  cannot be decryption if the archive is encrypt.
#3169587 by codebymikey, DamienMcKenna, solideogloria: Warning:
  opendir(private://backup_migrate/scheduled): failed to open dir.


Backup and Migrate 5.0.x-dev, xxxx-xx-xx
+1 −1
Original line number Diff line number Diff line
@@ -249,7 +249,7 @@ class DirectoryDestination extends DestinationBase implements ListableDestinatio
      return $files;
    }

    if ($handle = opendir($dir)) {
    if (is_dir($dir) && ($handle = opendir($dir))) {
      while (FALSE !== ($file = readdir($handle))) {
        $filepath = $dir . '/' . $file;
        // Don't show hidden, unreadable or metadata files.