src/VDB/Spider/PersistenceHandler/FileRawResponsePersistenceHandler.php 1 location
|
@@ 39-47 (lines=9) @@
|
| 36 |
|
$this->path = $path; |
| 37 |
|
} |
| 38 |
|
|
| 39 |
|
public function setSpiderId($spiderId) |
| 40 |
|
{ |
| 41 |
|
$this->spiderId = $spiderId; |
| 42 |
|
|
| 43 |
|
// create the path |
| 44 |
|
if (!file_exists($this->getResultPath())) { |
| 45 |
|
mkdir($this->getResultPath(), 0700, true); |
| 46 |
|
} |
| 47 |
|
} |
| 48 |
|
|
| 49 |
|
public function count() |
| 50 |
|
{ |
src/VDB/Spider/PersistenceHandler/FileSerializedResourcePersistenceHandler.php 1 location
|
@@ 39-47 (lines=9) @@
|
| 36 |
|
$this->path = $path; |
| 37 |
|
} |
| 38 |
|
|
| 39 |
|
public function setSpiderId($spiderId) |
| 40 |
|
{ |
| 41 |
|
$this->spiderId = $spiderId; |
| 42 |
|
|
| 43 |
|
// create the path |
| 44 |
|
if (!file_exists($this->getResultPath())) { |
| 45 |
|
mkdir($this->getResultPath(), 0700, true); |
| 46 |
|
} |
| 47 |
|
} |
| 48 |
|
|
| 49 |
|
public function count() |
| 50 |
|
{ |