Skip to content

Commit ada8667

Browse files
committed
replace slashes to DS
1 parent 058ef8b commit ada8667

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lib/EioDriver.php

+1
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ public function mkdir($path, $mode = 0644, $recursive = false) {
362362
$priority = \EIO_PRI_DEFAULT;
363363

364364
if ($recursive) {
365+
$path = str_replace("/", DIRECTORY_SEPARATOR, $path);
365366
$arrayPath = array_filter(explode(DIRECTORY_SEPARATOR, $path));
366367
$tmpPath = "";
367368

lib/UvDriver.php

+1
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ public function mkdir($path, $mode = 0644, $recursive = false) {
305305
$promisor = new Deferred;
306306

307307
if ($recursive) {
308+
$path = str_replace("/", DIRECTORY_SEPARATOR, $path);
308309
$arrayPath = array_filter(explode(DIRECTORY_SEPARATOR, $path));
309310
$tmpPath = "";
310311

0 commit comments

Comments
 (0)