List function ( File arg0 ) { List loc0 = new ArrayList ( ) ; File loc1 ; try { loc1 = arg0 . getCanonicalFile ( ) ; while ( loc1 != null ) { loc0 . add ( loc1 . getName ( ) ) ; loc1 = loc1 . getParentFile ( ) ; } } catch ( IOException loc2 ) { loc2 . printStackTrace ( ) ; loc0 = null ; } return loc0 ; }
break a path down into individual elements and add to a list . example : if a path is / a/b/c/d.txt , the breakdown will be d.txt , c , b , a concode_field_sep PlaceHolder placeHolder concode_field_sep String matchPathLists concode_elem_sep void main concode_elem_sep String getRelativePath