From 9707c0b4c4145b9fbdab3a2ecb40c92633dacab1 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Thu, 22 Oct 2015 21:31:30 -0400 Subject: Make unit tests pass under Windows --- app/Core/ObjectStorage/FileStorage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Core/ObjectStorage/FileStorage.php') diff --git a/app/Core/ObjectStorage/FileStorage.php b/app/Core/ObjectStorage/FileStorage.php index 683a9e7f..dd049ca2 100644 --- a/app/Core/ObjectStorage/FileStorage.php +++ b/app/Core/ObjectStorage/FileStorage.php @@ -140,7 +140,7 @@ class FileStorage implements ObjectStorageInterface */ private function createFolder($key) { - $folder = strpos($key, '/') !== false ? $this->path.DIRECTORY_SEPARATOR.dirname($key) : $this->path; + $folder = strpos($key, DIRECTORY_SEPARATOR) !== false ? $this->path.DIRECTORY_SEPARATOR.dirname($key) : $this->path; if (! is_dir($folder) && ! mkdir($folder, 0755, true)) { throw new ObjectStorageException('Unable to create folder: '.$folder); -- cgit v1.2.3