File.ParentFile Property

Definition

Returns the abstract pathname of this abstract pathname's parent, or null if this pathname does not name a parent directory.

public virtual Java.IO.File? ParentFile { [Android.Runtime.Register("getParentFile", "()Ljava/io/File;", "GetGetParentFileHandler")] get; }
[<get: Android.Runtime.Register("getParentFile", "()Ljava/io/File;", "GetGetParentFileHandler")>]
member this.ParentFile : Java.IO.File

Property Value

The abstract pathname of the parent directory named by this abstract pathname, or null if this pathname does not name a parent

Attributes

Remarks

Returns the abstract pathname of this abstract pathname's parent, or null if this pathname does not name a parent directory.

The <em>parent</em> of an abstract pathname consists of the pathname's prefix, if any, and each name in the pathname's name sequence except for the last. If the name sequence is empty then the pathname does not name a parent directory.

Added in 1.2.

Java documentation for java.io.File.getParentFile().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to