File.getParent

Gets the parent directory for the file. If the file represents the root directory of the file system, then null will be returned.

This call does no blocking I/O.

interface File
getParent
()

Return Value

Type: gio.file.File

a #GFile structure to the parent of the given #GFile or null if there is no parent. Free the returned object with gobject.object.ObjectG.unref.