mirror of
https://github.com/danog/file.git
synced 2024-11-30 04:19:39 +01:00
add default value
This commit is contained in:
parent
76701d6918
commit
058ef8b563
@ -203,7 +203,7 @@ class BlockingDriver implements Driver {
|
|||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public function mkdir($path, $mode = 0644, $recursive) {
|
public function mkdir($path, $mode = 0644, $recursive = false) {
|
||||||
return new Success((bool) @\mkdir($path, $mode, $recursive));
|
return new Success((bool) @\mkdir($path, $mode, $recursive));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -132,7 +132,7 @@ interface Driver {
|
|||||||
* @param bool $recursive
|
* @param bool $recursive
|
||||||
* @return \Amp\Promise
|
* @return \Amp\Promise
|
||||||
*/
|
*/
|
||||||
public function mkdir($path, $mode = 0644, $recursive);
|
public function mkdir($path, $mode = 0644, $recursive = false);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete a directory
|
* Delete a directory
|
||||||
|
@ -356,7 +356,7 @@ class EioDriver implements Driver {
|
|||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public function mkdir($path, $mode = 0644, $recursive) {
|
public function mkdir($path, $mode = 0644, $recursive = false) {
|
||||||
\call_user_func($this->incrementor, 1);
|
\call_user_func($this->incrementor, 1);
|
||||||
$promisor = new Deferred;
|
$promisor = new Deferred;
|
||||||
$priority = \EIO_PRI_DEFAULT;
|
$priority = \EIO_PRI_DEFAULT;
|
||||||
|
@ -300,7 +300,7 @@ class UvDriver implements Driver {
|
|||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public function mkdir($path, $mode = 0644, $recursive) {
|
public function mkdir($path, $mode = 0644, $recursive = false) {
|
||||||
$this->reactor->addRef();
|
$this->reactor->addRef();
|
||||||
$promisor = new Deferred;
|
$promisor = new Deferred;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user