mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-08 05:18:40 +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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$tempName = \tempnam(\sys_get_temp_dir(), 'omsftp_');
|
$tempName = \sys_get_temp_dir() . '/' . \uniqid('omsftp_');
|
||||||
if ($tempName === false) {
|
$status = @\mkdir($tempName);
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
$status = @\mkdir($tempName);
|
|
||||||
if ($status === false) {
|
if ($status === false) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$download = self::get($con, $from, $tempName . '/' . self::name($from));
|
$download = self::get($con, $from, $tempName . '/' . self::name($from));
|
||||||
|
|
||||||
if (!$download) {
|
if (!$download) {
|
||||||
if ($status !== false) {
|
if ($status !== false) {
|
||||||
LocalDirectory::delete($tempName);
|
LocalDirectory::delete($tempName);
|
||||||
|
|
@ -439,7 +435,6 @@ class Directory extends FileAbstract implements DirectoryInterface
|
||||||
}
|
}
|
||||||
|
|
||||||
$upload = self::put($con, $tempName . '/' . self::name($from), $to);
|
$upload = self::put($con, $tempName . '/' . self::name($from), $to);
|
||||||
|
|
||||||
if (!$upload) {
|
if (!$upload) {
|
||||||
if ($status !== false) {
|
if ($status !== false) {
|
||||||
LocalDirectory::delete($tempName);
|
LocalDirectory::delete($tempName);
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,6 @@ Convolution
|
||||||
Linear filtering of an image is accomplished through an operation called convolution. Convolution is a neightornood
|
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
|
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
|
For example, suppose the image is
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user