mirror of
https://github.com/mosbth/cimage.git
synced 2025-07-25 02:31:20 +02:00
create caache directory for remote download if it does not exists #43
This commit is contained in:
@@ -473,8 +473,13 @@ class CImage
|
||||
public function downloadRemoteSource($src)
|
||||
{
|
||||
$remote = new CRemoteImage();
|
||||
$cache = $this->saveFolder . "/remote/";
|
||||
|
||||
if (!is_dir($cache)) {
|
||||
mkdir($cache);
|
||||
$this->log("The remote cache does not exists, creating it.");
|
||||
}
|
||||
|
||||
$cache = $this->saveFolder . "/remote/";
|
||||
if (!is_writable($cache)) {
|
||||
$this->log("The remote cache is not writable.");
|
||||
}
|
||||
|
Reference in New Issue
Block a user