public function getSubDirs($fileHash, $depth = 3)
{
$depth = min($depth, 9);
$path = '';
for ($i = 0; $i < $depth; $i++) {
$folder = substr($fileHash, $i * 3, 2);
$path .= $folder;
if ($i != $depth - 1) {
$path .= DIRECTORY_SEPARATOR;
}
}
return $path;
}