parent

Returns a new instance of StorageReference pointing to the parent location or null if this instance references the root location. For example:

path = foo/bar/baz   parent = foo/bar
path = foo parent = (root)
path = (root) parent = (null)

Return

the parent StorageReference.