}
public static String getPath( TreeNode res ){
TreeNode cur = res;
StringBuffer s = new StringBuffer();
while( cur != null ){
if( cur.getName().startsWith( "/" ) || ( s.length() > 0 && s.charAt( 0 ) == '/' ) )
s.insert( 0, cur.getName() );
else
s.insert( 0, "/" + cur.getName() );
cur = cur.getParent();
}
String p = s.toString();
while( p.indexOf("//") >= 0 )