mirror of
https://github.com/getformwork/formwork.git
synced 2025-02-23 09:13:07 +01:00
Fix FileSystem::copy()
and FileSystem::move()
not taking $overwrite
argument when operating on directories
This commit is contained in:
parent
ac9c132f56
commit
bce0cd03c0
@ -357,7 +357,7 @@ class FileSystem
|
||||
if (static::isFile($source)) {
|
||||
return static::copyFile($source, $destination, $overwrite);
|
||||
}
|
||||
return static::copyDirectory($source, $destination);
|
||||
return static::copyDirectory($source, $destination, $overwrite);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -426,7 +426,7 @@ class FileSystem
|
||||
if (static::isFile($source)) {
|
||||
return static::moveFile($source, $destination, $overwrite);
|
||||
}
|
||||
return static::moveDirectory($source, $destination);
|
||||
return static::moveDirectory($source, $destination, $overwrite);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user