diff --git a/html/inc/dir_hier.inc b/html/inc/dir_hier.inc index 1d806b05dd..d174bc02f5 100644 --- a/html/inc/dir_hier.inc +++ b/html/inc/dir_hier.inc @@ -29,7 +29,9 @@ function dir_hier_path($filename, $root, $fanout) { $dir = filename_hash($filename, $fanout); $dirpath = "$root/$dir"; if (!is_dir($dirpath)) { - mkdir($dirpath); + if (!mkdir($dirpath)) { + echo "failed to mkdir: $dirpath\n"; + } } return "$dirpath/$filename"; }