mirror of https://github.com/BOINC/boinc.git
web: if mkdir fails, show the path in error msg
This commit is contained in:
parent
d6ff95d1ec
commit
79fa97cfe3
|
@ -29,7 +29,9 @@ function dir_hier_path($filename, $root, $fanout) {
|
||||||
$dir = filename_hash($filename, $fanout);
|
$dir = filename_hash($filename, $fanout);
|
||||||
$dirpath = "$root/$dir";
|
$dirpath = "$root/$dir";
|
||||||
if (!is_dir($dirpath)) {
|
if (!is_dir($dirpath)) {
|
||||||
mkdir($dirpath);
|
if (!mkdir($dirpath)) {
|
||||||
|
echo "failed to mkdir: $dirpath\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return "$dirpath/$filename";
|
return "$dirpath/$filename";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue