Fix recursive mkdir

This commit is contained in:
Robin Appelman 2014-08-27 16:03:35 +02:00
commit f3b397f504
2 changed files with 8 additions and 1 deletions

View file

@ -93,7 +93,7 @@ class UrlCallback extends Wrapper implements Url {
public function mkdir($path, $mode, $options) {
$context = $this->loadContext($path);
$this->callCallBack($context, 'mkdir');
return mkdir($context['source'], $mode, $options);
return mkdir($context['source'], $mode, $options & STREAM_MKDIR_RECURSIVE);
}
public function rmdir($path, $options) {