private String getHashPathForLevel(String name, int levels)
{
String path = "";
if (levels != 0) {
try {
Hasher hasher = new Hasher(Algorithm.MD5);
String hash = hasher.toHashedHexString(name);
path = "";
for (int i = 1; i <= levels; i++) {
path += hash.substring( 0, i ) + "/";
}
} catch (NoSuchAlgorithmException e) {}