file_find_extant_parent

@accepts(Gio.File)
@returns(Gio.File)
def file_find_extant_parent(file)

Walks up the filesystem hierarchy to find a GFile representing the nearest extant ancestor of the specified file, which may be the file itself if it exists.

file :

a GFile to find an extant ancestor of

Returns :

GFile for the nearest extant ancestor