1 | <?php |
||
9 | class TempDirectory |
||
10 | { |
||
11 | private static $tempDirs = array( |
||
12 | '/dev/shm', |
||
13 | '/temp', |
||
14 | ); |
||
15 | |||
16 | /** @var string */ |
||
17 | private $timestamp; |
||
18 | |||
19 | /** |
||
20 | * Paraunit constructor. |
||
21 | */ |
||
22 | 28 | public function __construct() |
|
26 | |||
27 | /** |
||
28 | * @return string |
||
29 | */ |
||
30 | 28 | public function getTempDirForThisExecution() |
|
39 | |||
40 | /** |
||
41 | * @return string |
||
42 | */ |
||
43 | 28 | public static function getTempBaseDir() |
|
56 | |||
57 | /** |
||
58 | * @param string $path |
||
59 | */ |
||
60 | 28 | private static function mkdirIfNotExists($path) |
|
66 | } |
||
67 |