public static String getFullPath ( String filename ) { if ( filename == null ) { return null ; } int index = indexOfLastSeparator ( filename ) ; if ( index < 0 ) { return StringUtils . EMPTY ; } return filename . substring ( 0 , index ) ; }
Gets the path from a full filename .