diff --git a/System/File/Ftp/Directory.php b/System/File/Ftp/Directory.php index 3210ceced..9db5fdc87 100755 --- a/System/File/Ftp/Directory.php +++ b/System/File/Ftp/Directory.php @@ -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); - $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); diff --git a/tests/Ai/Ocr/Tesseract/thresholding.txt b/tests/Ai/Ocr/Tesseract/thresholding.txt index 8013a1f49..b280b646f 100755 --- a/tests/Ai/Ocr/Tesseract/thresholding.txt +++ b/tests/Ai/Ocr/Tesseract/thresholding.txt @@ -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