- Issue created by @DieterHolvoet
- last update
7 months ago 25 pass - Status changed to Needs review
7 months ago 9:51am 13 December 2023 - last update
3 days ago Patch Failed to Apply
When visiting the backups overview page (/admin/config/development/backup_migrate/backups), the following warning is displayed:
Warning: opendir([..]/private/files/backup_migrate): Failed to open directory: No such file or directory in Drupal\Core\StreamWrapper\LocalStream->dir_opendir() (line 415 of core/lib/Drupal/Core/StreamWrapper/LocalStream.php).
Drupal\Core\StreamWrapper\LocalStream->dir_opendir('private://backup_migrate/', 0)
opendir('private://backup_migrate/') (Line: 252)
Drupal\backup_migrate\Core\Destination\DirectoryDestination->getAllFileNames() (Line: 138)
Drupal\backup_migrate\Core\Destination\DirectoryDestination->listFiles(5) (Line: 97)
Visit the backups overview page (/admin/config/development/backup_migrate/backups) without the backup folder existing.
Early return an empty array if the directory does not yet exist. I don't think it should be automatically created when just listing files, the directory can be created when actually creating the first backup.
Needs review
5.0
Code