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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user