public static List < Path > getAncestorPathList ( Path startPath ) { List < Path > ancestorPathList = new ArrayList <> ( ) ; buildPathListOfAncestorDirectory ( ancestorPathList , startPath ) ; Collections . reverse ( ancestorPathList ) ; return ancestorPathList ; }
Gets ancestor path list .