Editor may use dirReady for the time being

pull/17/head
Frode Petterson 2016-01-25 14:48:14 +01:00
parent 64e2001156
commit 73fd170a3a
1 changed files with 4 additions and 1 deletions

View File

@ -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)) {