1
0
mirror of https://github.com/danog/file.git synced 2024-11-26 11:54:54 +01:00

Update ParallelDriver with recursive mkdir()

This commit is contained in:
Aaron Piotrowski 2017-01-11 00:05:35 -06:00
parent 78ec5cc634
commit 650c448497

View File

@ -119,8 +119,8 @@ class ParallelDriver implements Driver {
/**
* {@inheritdoc}
*/
public function mkdir(string $path, int $mode = 0644): Promise {
return new Coroutine($this->runFileTask(new Internal\FileTask("mkdir", [$path, $mode])));
public function mkdir(string $path, int $mode = 0644, bool $recursive = false): Promise {
return new Coroutine($this->runFileTask(new Internal\FileTask("mkdir", [$path, $mode, $recursive])));
}
/**