Commit 373d3b18 by Tom Tromey Committed by Tom Tromey

File.java (getParentFile): New method, from Classpath via Oskar Liljeblad.

	* java/io/File.java (getParentFile): New method, from Classpath
	via Oskar Liljeblad.

From-SVN: r35149
parent 75723df4
2000-07-20 Tom Tromey <tromey@cygnus.com>
* java/io/File.java (getParentFile): New method, from Classpath
via Oskar Liljeblad.
* java/util/Vector.java (remove(Object)): Implemented.
2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
......
......@@ -119,6 +119,12 @@ public class File implements Serializable
return path.substring(0, last);
}
public File getParentFile ()
{
String parent = getParent ();
return (parent == null ? null : new File (parent));
}
public String getPath ()
{
return path;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment