skip root directory

This commit is contained in:
skilion 2015-09-15 14:54:07 +02:00
parent 2d4cf32be5
commit c3c3a714e7

View file

@ -223,7 +223,9 @@ final class ItemDatabase
else path = r.front[0].dup;
id = r.front[1].dup;
}
return path[5 .. $]; // HACK: skip "root/"
// HACK: skip "root/"
if (path.length < 5) return null;
return path[5 .. $];
}
/*private string computePath(const(char)[] name, const(char)[] parentId)