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

replace slashes to DS

This commit is contained in:
Sergey Gelunenko 2016-09-28 15:18:05 +03:00
parent 058ef8b563
commit ada86677c9
2 changed files with 2 additions and 0 deletions

View File

@ -362,6 +362,7 @@ class EioDriver implements Driver {
$priority = \EIO_PRI_DEFAULT; $priority = \EIO_PRI_DEFAULT;
if ($recursive) { if ($recursive) {
$path = str_replace("/", DIRECTORY_SEPARATOR, $path);
$arrayPath = array_filter(explode(DIRECTORY_SEPARATOR, $path)); $arrayPath = array_filter(explode(DIRECTORY_SEPARATOR, $path));
$tmpPath = ""; $tmpPath = "";

View File

@ -305,6 +305,7 @@ class UvDriver implements Driver {
$promisor = new Deferred; $promisor = new Deferred;
if ($recursive) { if ($recursive) {
$path = str_replace("/", DIRECTORY_SEPARATOR, $path);
$arrayPath = array_filter(explode(DIRECTORY_SEPARATOR, $path)); $arrayPath = array_filter(explode(DIRECTORY_SEPARATOR, $path));
$tmpPath = ""; $tmpPath = "";