From 73fd170a3a54e7a2ac9f40bf3f184dadf7b52387 Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Mon, 25 Jan 2016 14:48:14 +0100 Subject: [PATCH] Editor may use dirReady for the time being --- h5p-default-storage.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/h5p-default-storage.class.php b/h5p-default-storage.class.php index 8f0e9d5..2821b40 100644 --- a/h5p-default-storage.class.php +++ b/h5p-default-storage.class.php @@ -285,10 +285,13 @@ class H5PDefaultStorage implements \H5PFileStorage { * Recursive function that makes sure the specified directory exists and * is writable. * + * TODO: Will be made private when the editor file handling is done by this + * class! + * * @param string $path * @return bool */ - private static function dirReady($path) { + public static function dirReady($path) { if (!file_exists($path)) { $parent = preg_replace("/\/[^\/]+\/?$/", '', $path); if (!self::dirReady($parent)) {