This commit is contained in:
Dennis Eichhorn 2022-12-26 13:35:10 +01:00
parent 3740f24c39
commit 4a3410d182
2 changed files with 2 additions and 8 deletions

View File

@ -418,18 +418,14 @@ class Directory extends FileAbstract implements DirectoryInterface
return false;
}
$tempName = \tempnam(\sys_get_temp_dir(), 'omsftp_');
if ($tempName === false) {
return false;
}
$tempName = \sys_get_temp_dir() . '/' . \uniqid('omsftp_');
$status = @\mkdir($tempName);
if ($status === false) {
return false;
}
$download = self::get($con, $from, $tempName . '/' . self::name($from));
if (!$download) {
if ($status !== false) {
LocalDirectory::delete($tempName);
@ -439,7 +435,6 @@ class Directory extends FileAbstract implements DirectoryInterface
}
$upload = self::put($con, $tempName . '/' . self::name($from), $to);
if (!$upload) {
if ($status !== false) {
LocalDirectory::delete($tempName);

View File

@ -17,7 +17,6 @@ Convolution
Linear filtering of an image is accomplished through an operation called convolution. Convolution is a neightornood
Operation in which each output pixel is the weighted sum of neighboring input pixels. The matrix of weights is called the
ion kernel that has been rotated 120 cegrees.
For example, suppose the image is