mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
fix perm
This commit is contained in:
parent
3740f24c39
commit
4a3410d182
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user