@Override
  public boolean isValidName(String src) {
    StringTokenizer tokens = new StringTokenizer(src, Path.SEPARATOR);
    while (tokens.hasMoreTokens()) {
      String element = tokens.nextToken();
      if (element.equals("..") || element.equals(".")) {
        return false;
      }
    }
    return true;
  }
@ Override public boolean isValidName ( String src ) { StringTokenizer tokens = new StringTokenizer ( src , Path . SEPARATOR ) ; while ( tokens . hasMoreTokens ( ) ) { String element = tokens . nextToken ( ) ; if ( element . equals ( ".." ) || element . equals ( "." ) ) { return false ; } } return true ; }
Follow HDFS conventions except allow for ':' in paths.