Set uuid string for temporary filename
This commit is contained in:
parent
6d88ccb8f1
commit
5a5f1756e1
|
@ -72,7 +72,7 @@ abstract class BaseCompiler implements Responsable
|
||||||
|
|
||||||
protected function prepareForCompilation(Document $document): void
|
protected function prepareForCompilation(Document $document): void
|
||||||
{
|
{
|
||||||
$workDir = '/tmp/'.Str::random(32);
|
$workDir = '/tmp/' . Str::uuid()->toString();
|
||||||
mkdir($workDir, 0777, true);
|
mkdir($workDir, 0777, true);
|
||||||
$this->file = new File($workDir . '/' . $document->compiledFilename(), false);
|
$this->file = new File($workDir . '/' . $document->compiledFilename(), false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue