Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
backup_migrate
Manage
Activity
Members
Labels
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal.org
backup_migrate
Commits
b82e545d
Commit
b82e545d
authored
6 years ago
by
hugronaphor
Committed by
Alex Andrascu
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue #2937840 by hugronaphor: Avoid "Unable to find the wrapper "private"" error
parent
16ddf1bf
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/backup_migrate_core/src/Destination/DirectoryDestination.php
+13
-0
13 additions, 0 deletions
...kup_migrate_core/src/Destination/DirectoryDestination.php
with
13 additions
and
0 deletions
lib/backup_migrate_core/src/Destination/DirectoryDestination.php
+
13
−
0
View file @
b82e545d
...
...
@@ -248,6 +248,19 @@ class DirectoryDestination extends DestinationBase implements ListableDestinatio
// Read the list of files from the directory.
$dir
=
$this
->
confGet
(
'directory'
);
/** @var \Drupal\Core\File\FileSystemInterface $fileSystem */
$fileSystem
=
\Drupal
::
service
(
'file_system'
);
$scheme
=
$fileSystem
->
uriScheme
(
$dir
);
// Ensure the stream is configured.
if
(
!
$fileSystem
->
validScheme
(
$scheme
))
{
drupal_set_message
(
t
(
'Your @scheme stream is not configured.'
,
[
'@scheme'
=>
$scheme
.
'://'
]),
'warning'
);
return
$files
;
}
if
(
$handle
=
opendir
(
$dir
))
{
while
(
FALSE
!==
(
$file
=
readdir
(
$handle
)))
{
$filepath
=
$dir
.
'/'
.
$file
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment