Checks if file has a parent, and optionally, if it is parent. If parent is NULL then this function returns TRUE if file has any parent at all. If parent is non-NULL then TRUE is only returned if file is a child of parent. Since 2.24
the parent to check for, or NULL. [allow-none]
TRUE if file is a child of parent (or any parent in the case that parent is NULL).
See Implementation
Checks if file has a parent, and optionally, if it is parent. If parent is NULL then this function returns TRUE if file has any parent at all. If parent is non-NULL then TRUE is only returned if file is a child of parent. Since 2.24