private static String dirName(String nodeName){
  for (int i=0, n=nodeName.length(); i < n; i++)   if (!isDirChar(nodeName.charAt(i)))   return "_" + Base64.byteArrayToAltBase64(byteArray(nodeName));
  return nodeName;
}

private static String dirName ( String nodeName ) { for ( int i = 0 , n = nodeName . length ( ) ; i < n ; i ++ ) if ( ! isDirChar ( nodeName . charAt ( i ) ) ) return "_" + Base64 . byteArrayToAltBase64 ( byteArray ( nodeName ) ) ; return nodeName ; }
returns the directory name corresponding to the specified node name . generally , this is just the node name . if the node name includes inappropriate characters ( as per isdirchar ) it is translated to base64 . with the underscore character ( ' _ ' , 0x5f ) prepended .
