protected void ensurePathExists(String path){
  String[] paths=path.split("/");
  StringBuffer spath=new StringBuffer("/");
  for (  String temp : paths) {
    if (StringUtils.isBlank(temp)) {
      continue;
    }
    spath.append(temp);
    ensureExists(spath.toString(),null,acl,CreateMode.PERSISTENT);
    spath.append("/");
  }
}

protected void ensurePathExists ( String path ) { String [ ] paths = path . split ( "/" ) ; StringBuffer spath = new StringBuffer ( "/" ) ; for ( String temp : paths ) { if ( StringUtils . isBlank ( temp ) ) { continue ; } spath . append ( temp ) ; ensureExists ( spath . toString ( ) , null , acl , CreateMode . PERSISTENT ) ; spath . append ( "/" ) ; } }
ensures that the given path exists with no data , the current acl and no flags
