@Pure
	public static String[] split(File filename) {
		if (filename == null) {
			return new String[0];
		}
		return filename.getPath().split(Pattern.quote(File.separator));
	}
@ Pure public static String [ ] split ( File filename ) { if ( filename == null ) { return new String [ 0 ] ; } return filename . getPath ( ) . split ( Pattern . quote ( File . separator ) ) ; }
Replies the parts of a path.

@param filename is the name to parse.
@return the parts of a path.