{
int idx = path.indexOf("/");
String dir = path.substring(0, idx);
String rest = path.substring(idx+1);
RepositoryElement dirElement = getChild(dir); // Get directory element
if( dirElement == null )
{
// It doesn't already exist so create it:
dirElement = add(new DirectoryRepositoryItem(this, dir), allowOverwrite);
}