owncloud/core — pull request #12162 by PVince81 (2014-11-13 16:39:44+00:00)
Title: Do not remove dir entry if it has the same name as the parent

This fixes an issue when a subdir has the same name as its parent, it
would get exluded from the list.

Not sure why this code was these in the first place, maybe it was necessary for older SDK versions...
I tested this against stable7 and master, both work.

Please review @butonic @craigpg @icewind1991

Fixes https://github.com/owncloud/core/issues/12152